Chapter 3 Ada Language Reference
AutoCode Reference 3-22 ni.com
1. Build a model—Use the SuperBlock Editor to construct a model that
uses fixed-point types for input/output signals. Refer to the
SystemBuild User Guide for more information.
2. Generate real-time code—From the SystemBuild pull-down menus,
select Build»Generate Real-Time Code. In the AutoCode dialog
box, select Ada Code Generation and continue. Example 3-2 shows
a sample transcript that should appear in the Xmath window during
code generation.
Example 3-2 Example Code Generation Transcript
Analyze complete for SuperBlock gaintest.
New Real Time File saved to /home/test/gaintest.rtf
*********************************************************
* AutoCode/Ada Code Generator 7.X *
* *
* (C) Copyright 2000. National Instruments Corporation.*
* Unpublished work; Restricted rights apply. *
* All rights reserved. Portions U.S. Patent. *
*********************************************************
Loading 'gaintest.rtf' ...
Initializing ...
Building symbols ...
Executing 'ada_rt.dac' :
Generating procedures package declarations ...
Generating subsystems package declarations ...
Generating the scheduler ...
Generating subsystems package bodies ...
Generating procedures package bodies ...
Output generated in gaintest.a
Generating fixed point operators package specification ...
Generating operator instantiations ...
Generating conversion instantiations ...
Output generated in fxp_gaintest_.a
Code generation complete
3. Compile the stand-alone files—Before compiling the generated Ada
code, all of the stand-alone files must be compiled into the Ada
Library. Sample scripts are provided to create an Ada Library in the
current working directory and compile all of the stand-alone files into
it. The stand-alone files need only be compiled once into the Ada
Library.