NI MATRIXx Reference Manual
Contents
AutoCode Reference xii ni.com
Chapter 7
Code Optimization
Read from Variable Blocks ........................................................................................... 7-1
Restart Capability .......................................................................................................... 7-5
Merging INIT Sections.................................................................................................. 7-8
Reuse of Temporary Block Outputs .............................................................................. 7-11
Reuse Temporaries as Specified ..................................................................... 7-11
Maximal Reuse of Temporaries...................................................................... 7-11
Constant Propagation..................................................................................................... 7-13
Optimizing with Matrix Blocks..................................................................................... 7-16
Optimizing with Constant Blocks ................................................................... 7-16
Optimizing with Callout Blocks ..................................................................... 7-17
Optimizing with Inverse Blocks ....................................................... 7-17
Optimizing with Division Blocks ..................................................... 7-17
Summary........................................................................................................................ 7-19
Chapter 8
AutoCode Sim Cdelay Scheduler
Introduction ................................................................................................................... 8-1
Task Posting Policies..................................................................................................... 8-2
Standard AutoCode Scheduler ...................................................................................... 8-3
Scheduler Pipeline........................................................................................... 8-5
Managing DataStores in the Scheduler........................................................... 8-7
Sim Cdelay Scheduler ................................................................................................... 8-9
State Transition Diagrams of Tasks under Sim Cdelay................................................. 8-10
Implementing the Sim Cdelay AutoCode Scheduler..................................................... 8-12
Implementation Details ................................................................................... 8-12
DataStore Priority Problem............................................................................. 8-13
Using the Sim Cdelay Scheduler................................................................................... 8-14
Template Configuration for Enhanced Performance..................................................... 8-15
Shortcomings of the Sim Cdelay Scheduler.................................................................. 8-16
Chapter 9
Global Scope Signals and Parameterless Procedures
Introduction ................................................................................................................... 9-1
Data Monitoring/Injection ............................................................................................. 9-2
Specifying Monitored Signals......................................................................... 9-2
Generating Code for Monitored Signals ......................................................... 9-3
Limitations ...................................................................................................... 9-4
Unsupported Blocks ......................................................................... 9-4
Connection to External Output ......................................................... 9-4