The Expression Node


The Expression Node is found on the Programming>>Numeric palette (see Figure 6.73) and is basically just a simplified Formula Node having just one unnamed input and one unnamed output.

Figure 6.73. Expression Node shown on the block diagram (left) and on the Programming>>Numeric palette (right)


Figure 6.73 shows the Expression Node with annotated parts. Unlike the Formula Node, you do not have to name the input or output terminals. (Because there is only one input and one output, there is no ambiguity.) Also, because there is only one expression, there is no need for a semicolon at the end of the expression. (The Formula Node does require semicolons at the end of each expression.) Finally, in an Expression Node, you can use any valid name you want for the input variable (in our previous example, "x" could have just as easily been "y" or "Tps" with the same effect), but remember you can only use one variable in an Expression Node, unlike the Formula Node, which allows multiple input and output variables.

The same operators and syntax of the Formula Node apply to the Expression Node.




LabVIEW for Everyone. Graphical Programming Made Easy and Fun
LabVIEW for Everyone: Graphical Programming Made Easy and Fun (3rd Edition)
ISBN: 0131856723
EAN: 2147483647
Year: 2006
Pages: 294

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net