Invoking Procedures Using Generated Subsystem Function - National Instruments AutoCode NI MATRIX Reference

National instruments ni matrixx reference manual
Table of Contents

Advertisement

© National Instruments Corporation
properly. Refer to the SystemBuild User Guide for an explanation of
. Only the first four elements of this array will be used by the
rinfo
generated procedure. This array will be passed as argument
3.
Create an array sized by the number of inputs in the procedure (refer to
the comment) of type
This array will be passed as argument
and initialize to the number of inputs in the procedure. A pointer
int
to this variable will be passed as argument
4.
Create an array sized by the number of outputs in the procedure (refer
to the comment) of type
will be stored. This array will be passed as argument
a variable of type
procedure. A pointer to this variable will be passed as argument
5.
Create two arrays sized by the number of states in the procedure (refer
to the comment) of type
These arrays will be passed as arguments
(derivatives). Also create a variable of type
number of states in the procedure. A pointer to this variable will be
passed as argument
6.
Create two arrays sized by the number of integer and real parameters
in the procedure. Refer to the comment of types
initialize all elements to 0 and 0.0, respectively. These arrays will be
passed as arguments
7.
Invoke the procedure using the arrays and pointers to the variables
created in steps 1 through 6.
Invoking Procedures Using Generated Subsystem
Function
When generating a reusable procedure from a Procedure SuperBlock, along
with the algorithmic procedure and the (UCB-style) wrapper, a subsystem
function (
subsys_ number
function directly from your application to invoke the procedure, but keep
in mind that this function is not re-entrant, as several variables in this
function are declared static to avoid the overhead of copy in and out of the
variables.
All of the following arguments need to be passed for each call to the
procedure in the following order:
structures reflecting the procedure's inputs and outputs. The inputs to the
subsystem are provided by the argument
_Subsys_ number _in
and copy in the inputs to the procedure.
double
U
where the outputs of the procedure
double
and initialize to the number of outputs in the
int
and initialize all elements to 0.0.
double
.
NX
and
.
I_P
R_P
) also is generated. You can use the subsystem
,
. These arguments are pointers to
U
Y
, a pointer to a structure named
U
(or
). This structure has mixed
_Sys_ExtIn
2-25
Chapter 2
C Language Reference
rinfo
. Also create a variable of type
.
NU
. Also create
Y
(states) and
X
XD
and initialize to the
int
and
int
double
AutoCode Reference
.
.
NY
and

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Autocode ni matrixx

Table of Contents