Chapter 3
Ada Language Reference
©
National Instruments Corporation
3-9
By default, several error conditions are trapped in the procedure
Implementation_Initialize
of
sa_utils.a/.ada
, but you can
expand this capability in your own versions of the program, detecting your
own error conditions and adding your own messages.
The Ada exception processing facility is used and you are encouraged to
define and raise exceptions in your versions of the
Implementation_Initialize
procedure.
The generated messages displayed in the default version of the
sa_utils.a/.ada
file are listed below. These messages pertain to the
processing of the input and output files for execution of generated code:
*** File opened is not in Xmath {matrixx, ascii} format.
Load the file into Xmath, save in {
matrixx
,
ascii
} format, then try
again.
*** Incorrect file version. Must be at least V7.0.
The input data file was generated using an obsolete version of MATRIXx.
Load the file into Xmath, save it from the Xmath Commands window, and
try again. Notice that
V7.0
refers to the version of the file save routine, not
to the version of MATRIXx.
*** Invalid file name
Check to see that the correct Ada file naming conventions are used.
*** Error opening input file
Check to see that the correct Ada file usage conventions are used.
***Input file contains more than two arrays.
***Input time vector has more than one column.
***Input time vector cannot be an imaginary number.
***Input array dimensions must be TIME_POINTS X NUMBER
OF INPUTS
***Input array cannot contain imaginary numbers.
All the previous messages indicate a bad input file.
*** First time point must be zero.
An input time vector must start at zero.
*** Time vector size exceeds storage limit.
*** Input array size exceeds storage limit.