Contents
x
ni.com
Local Variables and Phases .............................................................. 5-27
Discrete Semantics ........................................................................... 5-27
Continuous Semantics ...................................................................... 5-29
Terminology ..................................................................................... 5-29
Loops and Scalar Code ..................................................................... 5-29
Rolling Loops with Scalar Code Generation .................................... 5-30
Vectorized Code ............................................................................... 5-31
Types of Loops ................................................................................. 5-31
Examples of Rolled and Unrolled Loops ......................................... 5-32
Using Parameters Instead of States in a Discrete Model.................. 5-33
Constant Propagation/Hard-Coding ................................................. 5-35
Dead Code Elimination .................................................................... 5-35
Implicit Type Conversion ................................................................. 5-36
Phases of the UCB .......................................................................................... 5-37
Indirect Terms ................................................................................................. 5-37
Parameterized UCB Callout............................................................................ 5-38
IfThenElse Block ............................................................................................ 5-39
WHILE Block ................................................................................................. 5-39
BREAK Block................................................................................................. 5-40
CONTINUE Block.......................................................................................... 5-40
Local Variable Block ...................................................................................... 5-40
Sequencer Block ............................................................................................. 5-41
Shared Memory Architecture.......................................................................... 5-43
Distributed Memory Architecture ................................................................... 5-44
Shared Memory Callouts ................................................................................ 5-44
Callout Naming Convention ............................................................. 5-44