LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using the mathscript node and mathscript window

I am trying to call in Vs from the signal generator, I used to converter to change it from dynamic data into double, however I do not know how to link the Vs in the script to the input terminal of the mathscript node. The same goes for linking V with the output node. when the program runs, it cites an error at line 3, saying Vs is undefined (i guess this is because they are not linked). Also, what is the difference between working with the mathscript node and the mathscrpt command window?

 

Any help will be appreciated.

 

Attached is the VIcode.

 

 

Thank you

 

Charles

0 Kudos
Message 1 of 2
(2,366 Views)

Hello studengineer Charles,

 

First you create the undefined variables Vs and V, and then insert the code in the node containing those variables. After pressing enter, and then choosing the data type, those variables become defined, "linked". Here is a good starting tutorial on the MathScript node. The MathScript Node and the LabVIEW MathScript Window can communicate only if they are in the same application instance. Here is the help document on creating these nodes. Hope this helps!

 

Regards,

Deborah Y.

 

 

Deborah Burke
NI Hardware and Drivers Product Manager
Certified LabVIEW Architect
0 Kudos
Message 2 of 2
(2,351 Views)