LabVIEW MathScript RT Module

cancel
Showing results for 
Search instead for 
Did you mean: 

Matlab syntax in MathScript

Hello,

I have working Matlab syntax code (works in Matlab) and I am trying to execute it in the MathScript Node in LV 8.2.1.  The Matlab code was written on another machine, I do not have Matlab on this machine and cannot use the MATLAB Script node.  I believe the problem is in the execution of the while loop, as all code before the while loop seems to execute fine and all code within and after the while loop doesnt return proper outputs.  I am interested in returning the following variables: "x", "TF", "Uo".  Any ideas?
0 Kudos
Message 1 of 2
(6,693 Views)

jmcbee,

To run your example, you have to define the Uo variable somewhere in your code. To know what is missing, just create a control from the "error out" terminal and you will see that Uo is not defined. Just add Uo=0, this will generate the Graph out.

Hope this helps!

Barp - Control, Simulation, RTT and HIL - National Instruments
0 Kudos
Message 2 of 2
(6,682 Views)