LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I get error 1048 when using a MatLab script node

Hi,

I've been getting error 1048 (LabVIEW failed to get variable from server) when using a MatLab script node in my VI.  Previously I was getting error 1047 (LabVIEW failed to pass variable to server)  but I fixed that by putting "scriptNodeWait = 500" in labview.ini.  I have read all of the help and knowledgebase documents and previous posts but can't get anything to work.  The code definitely works in MatLab.  Is there anything I can do to figure out what's going on?

I'm running LabVIEW 8.2 on Windows XP with MatLab 7.4.0 (R2007a)
0 Kudos
Message 1 of 4
(2,734 Views)
The full error is "LabVIEW: LabVIEW failed to get variable from server.  Undefined function or variable '*my variable*'."
0 Kudos
Message 2 of 4
(2,728 Views)
Also, the example file Lorenz Diff Eq.vi works fine.
0 Kudos
Message 3 of 4
(2,723 Views)

Glen,

Can you verify that any outputs of the script node are being created in the script?  For example, if your script node has an output called "myvariable", make sure that the script inside the node creates a variable called "myvariable".  If you can post the VI that is causing the problem, I may be able to help you more.

Chris M

0 Kudos
Message 4 of 4
(2,714 Views)