LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Matlab Script Errors

I've recently had an unwanted update from 6.0 to 6.1 performed on my computer. It was unwanted because I knew there would be conflicts with written software and the updated version of labview. I've reinstalled 6.0 and am trying to get back to where I was originally. The first thing I noticed was that matlab no longer loaded when I ran a Labview program containing a script file. The following web site has a solution:

http://digital.ni.com/public.nsf/websearch/4475BC3CEB062C9586256D750058F14B?OpenDocument

There are some interesting bugs here that ALL should know about.

Labview no longer supports the MatLab construct:

If (variable) % This ends the script
XXXX
end

It must now be written:

if (variable > 0) % This WORKS!!
XXXX
end

Furthermore Labview no longer supports the passing of real variables into matlab scripts. Even though the option is still there they are
passed as complex and cannot be used as an index to an array until they are cast as real.

Dmb = Arry_X(input_i); % This ends the script

input_i = real(input_i);
Dmb = Arry_X(input_i); % This Works

I still have not got my system back up and running so if others know of more bugs I'd like a heads up.

Thanks
Jim Fee
0 Kudos
Message 1 of 1
(2,403 Views)