Formula Node structure

From LabVIEW Wiki
Jump to: navigation, search
Object information
Owning palette(s) Structures palette
Type Structure
Requires Basic Development Environment
Icon Functions Palette - Programming - Structures - Formula Node.png

The Formula Node evaluates mathematical formulas and expressions similar to C on the block diagram. The following built-in functions are allowed in formulas:

abs, acos, acosh, asin, asinh, atan, atan2, atanh, ceil, cos, cosh, cot, csc, exp, expm1, floor, getexp, getman, int, intrz, ln, lnp1, log, log2, max, min, mod, pow, rand, rem, sec, sign, sin, sinc, sinh, sizeOfDim, sqrt, tan, tanh.

There are some differences between the parser in the Mathematics VIs and the Formula Node.

Usage

Best practice

Tips and tricks

  • Use slash-asterisk pairs to enclose multi-line comments (/* multi-line comment */). The comment ends at the next */
  • Use double-slashes for single-line comments (// single-line comment). The comment ends at the end of the line.

History

Version Change(s)
LabVIEW 2018 More info to come.

See Also

External Links