Summary: In this exercise, the objective is to use the Formula Node in a VI. Complete the following steps to build a VI that uses the Formula Node to perform a complex mathematical operation and graphs the results.
![]() Figure 1 |
![]() Figure 2 |
Formula Node, located on the
Functions>>All Functions>>Structures
palette, on the block diagram.
x input terminal by
right-clicking the left border and selecting
Add Input from the shortcut menu. Type
x in the box that appears.
y and a output terminals by
right-clicking the right border and selecting
Add Output from the shortcut
menu. Enter y and a,
respectively, in the boxes that appear. You must
create output terminals for temporary variables like
Formula
Node, where ** is the
exponentiation operator. Refer to the LabVIEW
Help for more information about syntax for
the Formula Node.
a = tanh(x) + cos(x); y = a**3 + a;
Formula Node Exercise.vi in
the C:\Exercises\ LabVIEW Basics I
directory.
15.0. The quotient is
wired to the Formula Node, which calculates
the function value. The VI plots the array as a graph.
Comments, questions, feedback, criticisms?
"A full introductory course on programming with LabVIEW."