LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I get error 1048 (get variable) as soon as I add an input(either control or constant) to the MATLAB script node

I am running on Windows 2000 with Labview 6.0i and Matlab 6.1 version 12.1. I got the updated matscript.dll (which fixed my initial problem of not being able to load the script server). I can have many outputs, but as soon as I try to use an input into the MATLAB script, I get the error message telling me that Labview can't get any of the output variables from the server. Any ideas would be greatly appreciated.
thanks,Nita
0 Kudos
Message 1 of 2
(2,669 Views)
Unfortunately the 1048 error message isn't very descriptive. My suggestion would be to try running the examples that come with LabVIEW and see if you have the same problem. They can be found under Help >> Examples >> Communication >> Importing Matlab Script. Both of these have outputs, one uses an input.
I ran these using LabVIEW 6.0.2 and Matlab 6.1 without any problems.

Also, to be on the safe side, I would keep all variable names lowercase (both in the Matlab script and in the input tunnel to the script node). Be sure
to avoid naming variables that are reserved words.

Chris_Mitchell
Product Development Engineer
Certified LabVIEW Architect

0 Kudos
Message 2 of 2
(2,669 Views)