Scope Rules for Declaring Variables in Formula Nodes

LabVIEW 2018 Help


Edition Date: March 2018
Part Number: 371361R-01
View Product Info

DOWNLOAD (Windows Only)


LabVIEW 2016 Help
LabVIEW 2017 Help
LabVIEW 2018 Help
LabVIEW 2019 Help
LabVIEW 2020 Help

Formula Nodes use the same scope rules for declaring variables as C.

  • All variables you declare in bracketed blocks are only accessible within the bracketed block.
  • All input terminals are considered variables at the outermost block (not enclosed in brackets), and cannot be declared again in the outermost block.
  • LabVIEW tries to match variables you declare at the outermost block (not enclosed in brackets) to output terminals with the same name.
  • You can declare output terminals that have no corresponding input terminal and are not declared at the outermost block.

Use the correct Formula Node syntax when declaring variables.

Note Note  You can use Formula Node most effectively if you are familiar with the C programming language. LabVIEW Help assumes you are familiar with C and does not contain any topics related to programming in C. Refer to The C Programming Language by Brian W. Kernighan and Dennis M. Ritchie or Teach Yourself C by Herbert Schildt for more information.

Related Information

Formula Node Syntax

WAS THIS ARTICLE HELPFUL?

Not Helpful