LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

mathscript node

Hi,
 
I'm new with using LabView and I'm trying to use the mathscript node, but I'm getting an error an, "unexpected token error".  I have attached the vi if that helps, but anyways I'm trying to input 3 numbers and then do some math operations and ouptut two positions.  The three inputs will be data from a DAQ, but I'm just using numeric controls to test the program.  It seems like the mathscript node does not like more than one input, but I know it can do it from examples I've looked at.  Would someone be able to help me out with this?
 
Thanks,
             Pete 
0 Kudos
Message 1 of 4
(2,752 Views)

Try writing your first line as W=A+B+C;

Your assignment logic is backwards.

0 Kudos
Message 2 of 4
(2,745 Views)
Hi Pete,

apart from the order error the mathscript node is (IMHO) the worst structure you can choose for such a simple calculation.

See attachment to have 2 more options to do some math...
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 4
(2,731 Views)

Thank you very much guys for the help.  It works beautifully now.

Pete

0 Kudos
Message 4 of 4
(2,704 Views)