2012 LabVIEW and Matlab script server error
I just installed LV 2012 and upgrade the code that runs Matlab scripts. Now when I run it, it gives me an error of server script (1047). I'm using Matlab 2007. Someone at - it the same problem? Anyone know of a solution?
I guess it has to do with the server script does not properly. But I can't exactly run the same code in LV 2011 without problem while LV 2012 gives me an error. Same computer, etc.
Thanks in advance for any help you might be able to provide.
Thank you "transfererror", this helped me identify workaround.
For those who struggle with this, that's what I learned:
1. This affects only the variables that are passed in a sub - VI in the connector pane (that is, local variables are not connected to the connector pane apparently do not have this problem).
2. it seems to only affect as vectors 1 d or 2D paintings. The reason why the screws inserted by Sev_K example applies to this problem is that the types of data that are not arrays do not have this problem.
3. Thus, to solve my problem, I inserted just an addition of 0 to all vectors and matrices that have been passed in the Sub - VI. I guess what it doesn't copy the variable in a local buffer and it is perhaps the reason why he fix it?
In any case, workaround seems to work. I don't know what it costs in terms of speed or memory, but I do not have much about it for my application (some real-time applications that use Matlab scripts eventually consider it).
Perhaps this information can help identify and fix this bug.
Unique
Tags: NI Software
Similar Questions
-
Hello
I control my physical robot with labview and my rio. I also have a matlab (m.file) code that uses it the Robotics Toolbox in Matlab. I would like to add this m.file to my labview program. Can I create a matlab script in the program labview and matlab code inside and deploy code to myrio? It will work in this case?
AFAIK, the nodes in script call script software MATLAB server to run scripts written in MATLAB language syntax. But I don't know about adding my rio to the loop.
Thanks for the reply.
I also later get to know that this can be done by establishing communication between Matlab and myrio wifi.
-
The interface of LabVIEW and matlab
Hello, I want to interface LabVIEW with MATLAB using the TCP/IP protocol for data transfer. Can anyone, please give me an instruction step by step how to do this? If not, can point out you where I can get them? Thank you.
Hi Gilles,.
TCP/IP is a generic protocol then you should easily be able to build enough interfaces TCP/IP for your LabVIEW and Matlab code and data transfer on ASCII or variants, etc., depending on what kind of data you are trying to transfer. I'm not too familiar with Matlab, but on the end of LabVIEW, there are a few examples of server and client very good TCP/IP provided with LabVIEW.
Another option you may want to, and the reason why I answer it is that I did recently a project through which we took some legacy code MATLAB which we wanted to transpose into LabVIEW, so that we can automate then completely a test system that we use TestStand. A big part of it, we have been able to derive equivalent LabVIEW, but some functions where LabVIEW does not have an equivalent appropriate, or where it was simply more effective, simply copy us and paste Matlab code in any event in the first instance MathScript nodes (not dependant on Matlab) or Matlab script nodes (which will return if all goes well at a later date to transpose in full) LabVIEW for that is no longer dependent on a Matlab license).
In both cases, the facility to do this was very impressive, and we were able to wrap huge amounts of code Matlab LabVIEW with very few problems. As an idea, have you considered your functionality of Matlab of packaging in this way and keeping all the customer TCP/IP and comms server in LabVIEW?
Note: If you have not found it pick up the palette "Matlab Script.
Good luck
David
-
Communication between PCI6251, Labview and Matlab
Hello
I work with a Council of PCI6251, driven by an executable labview.
I get measurements from several sensors (pressure, temperature, etc.) which are read by the executable of labview.
I would like to know if it is possible to send these Matlab measurements at the same time.
I mean: is the PCI6251 card can send data to Labview and Matlab at the same time of acquisition?
Or I need to install a second PCI card for that?
(Labview and Matlab are installed on the same PC now)
Hi Nico974,
If you want to transfer data from LabVIEW in MATLAB, you have to use ActiveX connection between 2 software or to add the node to MATLAB in you program LabVIEW (see http://digital.ni.com/public.nsf/allkb/2F8ED0F588E06BE1862565A90066E9BA?OpenDocument)
Another solution is to use the of MathWorks Data Acquisition Toolbox, because the card PCI-6251 is supported by this Toolbox (http://www.mathworks.fr/products/daq/supportedio14005.html)
But here you have a LV executable so if you can't change it you will not be able to use your exe and a Matlab Script at the same time, if you need another PCI card.
Sincerely
-
Difference between FFT LabVIEW and Matlab FFT
Anyone know why there is a lag in the absolute levels of the results of the function in LabVIEW and Matlab FFT?
See the VI attached for an example of my code to LV.
Also attached is the plot generated in Matlab, which seems to be compensated by ~ 37dB.
This was generated by using the command "plot (10 * log10 (abs (fft (x))))", where x is the same as in the VI input array.
Thank you very much
Dan
I see you are using the VI of spectrum FFT which returns a unique range of face. To convert a transformation both sides (IE FFT) in one spectrum sided with RMS units there is a standardization of sqrt (2) / n, where N is the number of points in x (t). You can prémultiplier your x (t) by N/sqrt (2) and get the same results as Matlab. Or, you can use the FFT.vi so you compare transform to transform instead of spectrum to transform.
-
MATLAB script node error: 1046
Hello world
I now use Labview for data acquisition and want to use MATLAB
function of node script to do the work of image processing.I have some problems get MATLAB script to function properly. The
It is:Whenever I tried to run the program, Labview gave me the following
error:"Error 1046: Labview does not initialize the script server, make sure that the server software is.
installed. »However, MATLAB is installed in the PC. I think that the reason of
This error is that I'm using a PC based campus University. I got into this PC MATLAB is a network
versioned. (i.e.
installed on the network server, but not in the local hard disk).Is that what I can do to work around this error?
Kind regards
KentHi hykwei,
Unfortunately, it is not possible to obtain the MATLAB Script nodes to work
LabVIEW under your current network configuration. So that the
Node MATLAB Script to work properly, it takes that MATLAB is
installed on the same machine as LabVIEW. This means that you will need
either install MATLAB on the local computer on which you apply
LabVIEW or you need install and use LabVIEW in the same
Server computer where MATLAB is installed. Function of MATLAB
feature, you may be able to make some sort of minimum installation on the
local machine that adds MATLAB to your registry and program files list,
but who sends you right to the copy of MATLAB on the network.
However, I am not aware if it is still an option or how you could go
on the implementation of this scheme, so if you are interested, I would contact with
MATLAB for more on this topic.Kind regards
-
2012 of LabVIEW and MATLAB use
Hello.
I am using the Matlab data plugin (http://zone.ni.com/devzone/cda/epd/p/id/4178) with LabVIEW 2012. I installed the plugin and the installer says that the installation was successful. However, the plugin does not appear in the list of plugins in LabVIEW. I rebooted the system, but that did not help.
Data plugins are incompatible with LabVIEW 2012? I also tried to add the plugin using the vi of the data plugin manage the palette. Although the vi does not return an error, the plugin still isn't available. Decommissioning of 2010 is not an option for me, because I need some of the new features.
Thanks for your help.
MATLAB does support 32-bit LabVIEW.
-
Between R2 2012 Windows and IBM Http Server SSL connection failed periodically.
Hi, I have a problem recently. I found that my windows server 2012 R2 has sometimes failed to connect with IBM Http Server ssl. Here it is the information of the two servers:
1 windows 2012 R2
-Already activate TLS 1.2 and TLS 1.0
-Already the latest version of windows update and restart
IIS - 8.5
2 IBM Http Server
-Apache 2.2.31
-using OpenSSL 1.0.2f
-Allow TLS1.2 and TLS 1.0
I also captured network traffic when the two server. If the ssl connection has managed to create. Traffic will be like the following screen:
If the ssl connection was impossible to create, network traffic was like the below:
You will see that the ssl connection failed when the version of the TLS protocol was passed to TLSv1. And returned access denied. The details of the access denied was like the below:
As the captured screen reproduced above, you will see that the SSL for Client Hello was TLSv1.2 but running on the recording layer TLSv1. this Hello customer was sent by the server r2 windows 2012. I don't know why the ssl connection has been passed to TLSv1 suddenly.
I found that Microsoft has released an update on January 12, 2016. This fix is the resumption of SSL. Update ID was 3109853 , but I have already applied this update on my server. I tried to do the with the other type of server ssl connection, the ssl connection is possible in a stable condition and has happened the problem I mentioned. Is there someone met this case and resolve it finally?
Hello
Post your question in the TechNet Server Forums, as your question kindly is beyond the scope of these Forums.
http://social.technet.Microsoft.com/forums/WindowsServer/en-us/home?category=WindowsServer
See you soon.
-
Using ColdFusion and get "Internal Server Error" instead of the ColdFusion error page
I'm using IIS7 with Windows Server 2008 R2. I have 11 ColdFusion set up and running. Everything seems to work fine except when I have a coldfusion error, I get an error message in IIS instead of ColdFusion. I get the generic 500 - internal error from the server instead of the ColdFusion page telling me what is the problem.
It is a new installation on an empty server. Nothing else is running on this computer, and nothing else has been charged.
In ColdFusion administrator, I have the checkboxes for "Enable robust Exception information" and "enable request Debugging Output" checked.
If there is no error on the page, the page works fine. Its hard to debug when I don't see what is wrong if there is a typo or something.
Thank you.
You must uncheck the box for "Enable HTTP Status Codes" under Server settings > settings in CF Admin.
Kind regards
Anit Kumar
-
Conversion to get examples of LV of the 2012 LabView and LabView 2009
Hi all
I need to convert (if possible) these examples of screws to use one ID camera with 12-bit resolution.
Thanks in advance,
Fabrizio Croccolo
It is very easy to convert.
File > save for the previous version...
I've already converted them for you well.
-
Error signal processing VISA via MatLab script
Hello
I'm doing a simple acquisition of a VISA connected multimeter voltage feed voltage reading (it is a picture, but I only feed the frist for this example element, until I managed to make it work) and use a MatLab script with a build-in function to trace this tension. I get an error and I don't know why... Can anyone help?
P.S. I know I can do this simply and easily everything in LabView, but as a result of specific class, I have to do interfacing between LabView and MatLab.
Thank you all in advance!
Records,
G.
Hey everyone, managed to fix it myself. Apparently need to sit and read the documentation on the MATLAB script more carefully. The function that I used was not recognized, I guess... or the MatLab server is not able to run it. However, I simply removed the function and the script automatically recognizes the values for the variables of interest, powered 4 from the LabView code.
-
Hello!
I'm using Labview 2012 SP1 and I wrote a Matlab scipt to draw a Gaussian curve adjusted on a chart of the histogram.
In some extreme conditions, the shape of the histogram prevents the Gaussian fit to be correctly calculated and Matlab throws an error (see attachment) displays in a pop-up window.
The error is perfectly understandable, but I want to set up and to avoid the pop-up to appear.
I wired the error so that the error text is showed in an appropriate area of Labview, the Gauss curve is not established and does not execute any code that follows in series.However, the popup will always appear.
Is it possible to avoid it?
Thank you!
Best regards.
Michela
Is this something that you can recover from easily? If so, use ungroup by name to unbundle your cluster of error. From there, you can wire the digital in a housing structure. With this, you can have two cases: one with the error code and the other as a default value. With the case of error code, you place a 'Clear mistakes' Vi inside and the error in this cluster and out across the wire. In the default case, wire you the straight through error. In this way, you disable only this one type of error.
In 2014 or newer, the VI clear mistakes takes a digital input to ignore all the fun of the box structure. But it's the same result. You clear the error that you expect and that you can manage. There is almost always a way to write your own error handling. It depends on what exactly you need to do to recover from the error.
-
How adaptive algorithm is being implemented through node matlab script?
Hello
IAM working on adaptive algorithm of rejection
I want to make an adaptive algorithm in labview using Matlab script node, because I have the file matlab algorithm
It is not directly convert in labview, so I want to make the adaptive algorithm in labview
but the problem for implement the adaptive algorithm
could someone a idea?
Thank you
Hey,.
You just need to copy contained in the MATLAB script... node mfile then rest of the work is even with the other node in LabVIEW...
It could be that useful...
Concerning
HS
-
How to fix the "Creative Cloud server error" "stop synchronization?"
I tried to turn on "file synchronization" and "Creative Cloud server error" 'stopped Sync' is constantly since the notification of task jump bar upward. All other features work fine except file synchronization.
I logged into my account and manually downloadd files, I restarted, I signed in and out and back CC, but always without success.
JohnGoodayPhotography, SeriouslySam.
Please, try the following steps:
1. open the desktop creative cloud application.
2. click on the icon 'speed' to bring up the menu.
3. with the menu remains open, hold down the CTRL key.
4. all holding the control key, choose "exit".
5. wait a few seconds (about 1 minute).
6 remove this directory:
C:\Users\
\AppData\Roaming\CoreSync 7 repeat the creative cloud desktop application.
Note: The AppData folder is hidden by default. This document explains how to show this folder:
http://helpx.Adobe.com/x-productkb/global/show-hidden-files-folders-extensions.html
Please let us know if this does not solve your problem.
Thank you
Ben
-
Hi community, I have a problem with script labview matab, I have this problem:
Error 1047 to LabVIEW: LabVIEW failure of sending variable to the script server. Server
Possible reasons:
LabVIEW LabVIEW: Cannot send the variable to the script server.
We have some documents that mention possible reason why this error occurs, you might see if either of the following apply to what you see.
http://digital.NI.com/public.nsf/allkb/8BEBC0C86541224286257AF300561B5E?OpenDocument
http://digital.NI.com/public.nsf/allkb/2B3FF46C8512C4F786256CF30071BE53?OpenDocument
Maybe you are looking for
-
'Print black grayscale only' not clickable
I have a HP Photosmart 7450. My old PC run Windows XP Pro. When I've upgraded to a new PC with Windows 7, I can click is no longer on the "Print In Black only in grayscale. It's is more highlighted. How can I activate this option. I want to print
-
How to identify the cd XP home installed on my computer
I have three valid XP Home Edition cd, one is installed on a computer that I'm selling. How can I determine which copy is installed on this computer?
-
Speakers resettled after reinstall used work
Speakers on my Pavilion d4650e desktop with Xp Sp 3 does not work, they are Logitech s120. They worked before reinstall, but not now. Memories of drivers and some other measures taken when I first created their horse, but I don't remember what were t
-
COM + Event XP system conversion - > 7
I have a piece of software using COM + EventSystem, InterfcaeQueuing (message queuing) in Windows XP, Visual Studio 2005, .net 2 and I'm converted to .net Windows 7, Visual Studio 2010, 4. Everything compiles and installs but things get stuck in my q
-
I downloaded an old FREE (2005) version of InDesign CS2. Now, can I pay for the UPDATE (s) in InDesign CS3 or 4? If so, you know the cost of these improvements?Thanks for your help.Best regards, Scott