Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Scope Rules for Declaring Variables in Formula Nodes

LabVIEW 2011 Help

Edition Date: June 2011

Part Number: 371361H-01

»View Product Info
Download Help (Windows Only)

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.


Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit