The Formula Node is a convenient text-based node
you can use to perform mathematical operations on the block
diagram. Formula Nodes are useful for equations
that have many variables or are otherwise complicated and for
using existing text-based code. You can copy and paste the
existing text-based code into a Formula Node
rather than recreating it graphically on the block diagram.
Create the input and output terminals of the Formula
Node by right-clicking the border of the node and
selecting Add Input or Add Output
from the shortcut menu, then enter the variable for the input
or output. Type the equation in the structure. Each equation
statement must terminate with a semicolon (;).
Formula Nodes also can be used for decision
making. The block diagram shown in Figure 1 shows
two different ways of using an if-then statement
in a Formula Node. The two structures produce the
same result.
![]() |
The Formula Node can perform many different
operations. Refer to the LabVIEW Help for more
information about functions, operations, and syntax for the
Formula Node.
Note:
Formula Express VI located on the
Functions>>Arithmetic & Comparison palette
uses a calculator interface to create mathematical
formulas. You can use this Express VI to perform most math
functions that a basic scientific calculator can compute.
Refer to the LabVIEW Help for more information
about the Formula Express VI.










"A full introductory course on programming with LabVIEW."