ContentsAutoCode Reference x ni.comStates ............................................................................................................... 5-26Local Variables and Phases .............................................................. 5-27Discrete Semantics ........................................................................... 5-27Continuous Semantics ...................................................................... 5-29Looping Concepts ........................................................................................... 5-29Terminology ..................................................................................... 5-29Loops and Scalar Code ..................................................................... 5-29Rolling Loops with Scalar Code Generation .................................... 5-30Vectorized Code ............................................................................... 5-31Types of Loops ................................................................................. 5-31Examples of Rolled and Unrolled Loops ......................................... 5-32Parameters ....................................................................................................... 5-33Using Parameters Instead of States in a Discrete Model.................. 5-33Optimizations .................................................................................................. 5-35Constant Propagation/Hard-Coding ................................................. 5-35Dead Code Elimination .................................................................... 5-35Implicit Type Conversion ................................................................. 5-36Special Directives ........................................................................................... 5-36UserCode Block............................................................................................................. 5-37Phases of the UCB .......................................................................................... 5-37Indirect Terms ................................................................................................. 5-37Parameterized UCB Callout............................................................................ 5-38Software Constructs....................................................................................................... 5-39IfThenElse Block ............................................................................................ 5-39WHILE Block ................................................................................................. 5-39BREAK Block................................................................................................. 5-40CONTINUE Block.......................................................................................... 5-40Local Variable Block ...................................................................................... 5-40Sequencer Block ............................................................................................. 5-41Difference Between Local and Global Variable Blocks ............................................... 5-41Scope ............................................................................................................... 5-41Lifetime........................................................................................................... 5-41Continuous Subsystem .................................................................................................. 5-41Explicit Phases ................................................................................................ 5-42Integrator......................................................................................................... 5-42Limitations ...................................................................................................... 5-42Multiprocessor Code Generation................................................................................... 5-43Shared Memory Architecture.......................................................................... 5-43Distributed Memory Architecture ................................................................... 5-44Shared Memory Callouts ................................................................................ 5-44Callout Naming Convention ............................................................. 5-44Mapping Command Options........................................................................... 5-45Fixed-Point Support for Multiprocessor AutoCode........................................ 5-45