06-29-2011 05:17 PM
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
06-30-2011 06:58 PM
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.