Chapter 3
Ada Language Reference
3-8
ni.com
Refer to the Chapter 14,
UserCode Blocks
, of the
SystemBuild User Guide
or the source listing of the USR01 routine for meanings of UCB errors. You
are allowed to extend the scope of these messages, so it might be one of
yours.
Unknown error encountered in task
n
A possible cause is an incorrect user-written error condition in the
generated code.
Time overflow occurred in task
n
This indicates a subsystem (or task) overflow. Also, you might get this
error if the generated real-time code is run on non-real-time systems.
Unexpected error in task
n
This message occurs if an error other than any of the previous examples
is encountered.
Implementation_Initialize( ) Procedure
procedure Implementation_Initialize
(NUMIN:in RT_INTEGER;
NUMOUT:in RT_INTEGER,
SCHEDULER_FREQ:in RT_FLOAT)
In the default (simulation comparison) version of the
sa_utils.a/.ada
file, this function initializes the inputs and outputs for the system by loading
input data from the user-furnished
Xmath
{
matrixx
,
ascii
} formatted
input file. In the version of this routine that you write to make the generated
code work with the target computer, this routine performs many kinds of
implementation-specific initialization processes for the real-time system.
These processes include:
•
Initializing the clock-timer of the target system to request interrupts at
the minor cycle of the control system; that is, the time period required
between interrupts for synchronous operation of the various tasks, as
calculated by AutoCode from the block diagrams
•
Initializing the interrupt system of the target computer
•
Initializing the math coprocessor, if any
•
Setting up shared memory and other hardware-dependent processes
•
Initializing I/O hardware