National Instruments AutoCode NI MATRIX Reference page 7

National instruments ni matrixx reference manual
Table of Contents

Advertisement

UserCode Blocks ...........................................................................................................3-11
Linking Handwritten UCBs with AutoCode Applications..............................3-11
Calling UCBs...................................................................................................3-12
Procedure SuperBlocks..................................................................................................3-14
Generating Reusable Procedures.....................................................................3-14
Ada Fixed-Point Arithmetic...........................................................................................3-16
How to Generate Real-Time Code ..................................................................3-16
Fixed-Point AutoCode/Ada Architecture ........................................................3-16
Generated Code with Fixed-Point Variables...................................................3-19
User Types.......................................................................................................3-19
Overflow Protection ........................................................................................3-20
Stand-Alone Files ............................................................................................3-21
Compilation Example......................................................................................3-21
Fixed-Point Type Declarations........................................................................3-23
Generic Functions............................................................................................3-23
Bit-Wise Functions..........................................................................................3-26
Instantiated Functions Package .......................................................................3-26
Addition and Subtraction Functions................................................................3-29
Multiplication and Division Functions............................................................3-31
Conversion Functions......................................................................................3-31
Known Ada Compiler Problems .....................................................................3-35
Comparing Results to SystemBuild's Simulator.............................................3-35
No-Op Conversion Function ...........................................................................3-36
© National Instruments Corporation
External_Input ( ) Procedure.............................................................3-10
External_Output( ) Procedure ...........................................................3-11
Fixed-Point Data Types ....................................................................3-17
Generic Functions .............................................................................3-17
Instantiated Functions .......................................................................3-17
Package Dependencies ......................................................................3-18
System-Level Parameters to Generate User Types...........................3-20
Operator Instantiations ......................................................................3-26
Conversion Function Instantiations ..................................................3-27
Sample Package ................................................................................3-28
32-Bit Multiplication.........................................................................3-31
32-Bit Division..................................................................................3-31
Language-Defined Conversion .........................................................3-32
Truncation Conversion......................................................................3-32
Explicit Rounding Conversion..........................................................3-32
System Scope Operators and Conversions........................................3-34
vii
Contents
AutoCode Reference

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the AutoCode NI MATRIX and is the answer not in the manual?

This manual is also suitable for:

Autocode ni matrixx

Table of Contents