Contents© National Instruments Corporation ix AutoCode ReferenceSystem External Interface Layer .....................................................................5-7Discrete Subsystem Interface Layer................................................................5-8Single-Rate System ...........................................................................5-8Multi-Rate System ............................................................................5-8Sample and Hold ...............................................................................5-8Static Data Within Subsystems .......................................................................5-9iinfo ...................................................................................................5-9R_P and I_P ......................................................................................5-9State Data ..........................................................................................5-9Procedure Data ..................................................................................5-10Pre-init Phase...................................................................................................5-10Init, Output, and State Phases..........................................................................5-10Copy Back and Duplicates ..............................................................................5-10Error Handling.................................................................................................5-11Standard Procedures ......................................................................................................5-11Structure-Based Interface ................................................................................5-11Unrolled Interface............................................................................................5-12Phases and Error Handling ..............................................................................5-12Referenced Percent Variables..........................................................................5-12Procedure Arguments ......................................................................................5-15U, Y, S, and I.....................................................................................5-15Extended Procedure Information Structure .....................................................5-18Caller Identification ..........................................................................5-18Compatibility Issues..........................................................................5-19Macro Procedure............................................................................................................5-20Interface...........................................................................................................5-20Asynchronous Procedures..............................................................................................5-21Interrupt ...........................................................................................................5-21Background......................................................................................................5-21Startup..............................................................................................................5-21Changing %var Values During Startup.............................................5-22Condition Block .............................................................................................................5-22Default Mode...................................................................................................5-22No-Default Mode.............................................................................................5-22Sequential Mode..............................................................................................5-22BlockScript Block..........................................................................................................5-22Inputs and Outputs...........................................................................................5-23Environment Variables....................................................................................5-24Local Variables................................................................................................5-24Init, Output, and State Phases..........................................................................5-25Default Phase ....................................................................................5-26