National Instruments AutoCode NI MATRIX Reference page 200

National instruments ni matrixx reference manual
Table of Contents

Advertisement

/* ----------------------------
/* {proc..22} */
if (INIT) {
X->proc_22_S1 = 0.0;
}
proc_22_1 = X->proc_22_S1;
/* ----------------------------
/* {proc..24} */
if (INIT) {
X->proc_24_S1 = 0.0;
}
proc_24_1 = X->proc_24_S1;
/* ----------------------------
/* {proc..14} */
proc_14_1 = U->proc_1 - proc_22_1;
/* ----------------------------
/* {proc..12} */
proc_12_1 = 2.0*proc_14_1;
/* ----------------------------
/* {proc..5} */
proc_5_1 = proc_12_1 - proc_24_1;
/* ----------------------------
/* {proc..4} */
Y->proc_4_1 = 2.0*proc_5_1;
/***** State Update. *****/
/* ----------------------------
/* {proc..22} */
XD->proc_22_S1 = proc_12_1;
/* ----------------------------
/* {proc..24} */
XD->proc_24_S1 = Y->proc_4_1;
..
..
Example 7-6
Sample Code Segment Generated with Merging of INITs (-Oinitmerge) Option
if (SUBSYS_PREINIT[1]) {
iinfo[0] = 0;
iinfo[1] = 1;
iinfo[2] = 1;
iinfo[3] = 1;
X = &ss_1_states[0];
XD = &ss_1_states[1];
© National Instruments Corporation
Time Delay */
Time Delay */
Sum of Vectors */
Gain Block */
Sum of Vectors */
Gain Block */
Time Delay */
Time Delay */
7-9
Chapter 7
Code Optimization
AutoCode Reference

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