LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

eval formula node expressions

Hi

What are the acceptable formula inputs for the Eval Formula Node VI?

The help files do not mention much. It took me a long time to work out that 2*pi needed to be written pi(2).

I would also like to know if I can perform 'if' statements and what the correct syntax is.

 

My application uses two inputs (an integer and a voltage reading), a formula that the user enters (eval formula node vi), and an output number (DBL).

 

UniSA, Mawson Lakes, South Australia - LV 8.6.1
0 Kudos
Message 1 of 3
(3,188 Views)

Hi,

I cant help much but I can tell you that I too have spent a long time figuring out formula node VI input fromat.  What I can tell you is that 'to the power of' is written **  eg x squared is x**2.

I think that to use 'if' statements you will need to pre-evaluate your expression using string functions and programatically decide what to pass to the evaluate VI.  If you post an example of what you want to do we may come up with some ideas.

Michael.

0 Kudos
Message 2 of 3
(3,158 Views)

Hi mikie121

 

Take a look here. The  syntaxoperators, and functions links will be what you are looking for.

Joe Daily
National Instruments
Applications Engineer

may the G be with you ....
0 Kudos
Message 3 of 3
(3,133 Views)