beautypg.com

National Instruments AutoCode NI MATRIX User Manual

Page 9

background image

Contents

© National Instruments Corporation

ix

AutoCode Reference

System External Interface Layer .....................................................................5-7
Discrete Subsystem Interface Layer ................................................................5-8

Single-Rate System ...........................................................................5-8
Multi-Rate System ............................................................................5-8
Sample and Hold ...............................................................................5-8

Static Data Within Subsystems .......................................................................5-9

iinfo ...................................................................................................5-9
R_P and I_P ......................................................................................5-9
State Data ..........................................................................................5-9
Procedure Data ..................................................................................5-10

Pre-init Phase...................................................................................................5-10
Init, Output, and State Phases..........................................................................5-10
Copy Back and Duplicates ..............................................................................5-10
Error Handling.................................................................................................5-11

Standard Procedures ......................................................................................................5-11

Structure-Based Interface ................................................................................5-11
Unrolled Interface............................................................................................5-12
Phases and Error Handling ..............................................................................5-12
Referenced Percent Variables..........................................................................5-12
Procedure Arguments ......................................................................................5-15

U, Y, S, and I.....................................................................................5-15

Extended Procedure Information Structure .....................................................5-18

Caller Identification ..........................................................................5-18
Compatibility Issues..........................................................................5-19

Macro Procedure............................................................................................................5-20

Interface ...........................................................................................................5-20

Asynchronous Procedures..............................................................................................5-21

Interrupt ...........................................................................................................5-21
Background......................................................................................................5-21
Startup..............................................................................................................5-21

Changing %var Values During Startup.............................................5-22

Condition Block .............................................................................................................5-22

Default Mode...................................................................................................5-22
No-Default Mode.............................................................................................5-22
Sequential Mode ..............................................................................................5-22

BlockScript Block..........................................................................................................5-22

Inputs and Outputs...........................................................................................5-23
Environment Variables ....................................................................................5-24
Local Variables................................................................................................5-24
Init, Output, and State Phases..........................................................................5-25

Default Phase ....................................................................................5-26