National Instruments BridgeVIEW 用户手册

下载
页码 455
© National Instruments Corporation
12-1
12
Case and Sequence Structures 
and the Formula Node
This chapter introduces the basic concepts of Case and Sequence structures 
and the Formula Node, and provides activities that explain the following:
How to use the Case structure
How to use the Sequence structure
What sequence locals are and how to use them
What a Formula Node is and how to use it
Both Case and Sequence structures can have multiple subdiagrams, 
configured like a deck of cards, of which only one is visible at a time. 
At the top of each structure border is the subdiagram display window
which contains a diagram identifier in the center and decrement and 
increment buttons at each side. The diagram identifier indicates which 
subdiagram currently is displayed. For Case structures, a diagram identifier 
is a list of values which select the subdiagram. For Sequence structures, a 
diagram identifier is the number of the frame in the sequence (0 to – 1). 
The following illustration shows a Case structure and a Sequence structure.
Clicking on the decrement (left) or increment (right) button displays the 
previous or next subdiagram, respectively. Incrementing from the last 
subdiagram displays the first subdiagram, and decrementing from the first 
subdiagram displays the last. For more information about Case and 
Sequence structures, refer to Chapter 19, Structures, in the G Programming 
Reference Manual
.
Case Structure
Sequence Structure
Increment/Decrement
Buttons
Diagram
Identifier