National Instruments AutoCode NI MATRIX Reference page 75

National instruments ni matrixx reference manual
Table of Contents

Advertisement

Argument
I_P:in out
RT_INTEGER
NIP:in out
RT_INTEGER
© National Instruments Corporation
Table 3-5. UCB Calling Arguments and Data Types (Continued)
Data Type
The operations within UCBs are controlled by the
of
RT_STATUS_RECORD
each UCB:
type RT_STATUS_RECORD is
record
ERROR: RT_INTEGER;
INIT: RT_BOOLEAN;
STATES: RT_BOOLEAN;
OUTPUTS: RT_BOOLEAN;
end record;
The following example shows the general form of UCB equations and
indicates how the
if INFO.INIT then
-- do user code initialization
INFO.INIT :=
end if;
if INFO.OUTPUTS then
-- do output calculations having the general form:
-- Y := h(T,X,XD,U,R_P,I_P);
end if;
if INFO.STATES then
-- do state update calculations with the general form:
-- XD := f(T,X,XD,U,R_P,I_P);
end if;
When an error occurs within the UCB, set
integer value as an error return. Also, make sure that
FALSE at the end of the initialization cycle.
To link UCBs (either handwritten or generated) with generated scheduled
subsystem code, compile the UCBs, required
scheduled subsystem code and link them together to build an application.
An array of integer parameters.
The number of integer parameters.
type that is passed as part of the argument list for
status record is used to control the computations.
INFO
FALSE;
3-13
Chapter 3
Ada Language Reference
Description
argument, a record
INFO
some nonzero
INFO.ERROR:=
INFO.INIT
files, and the generated
sa_*
AutoCode Reference
is set to

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?

Questions and answers

This manual is also suitable for:

Autocode ni matrixx

Table of Contents