National Instruments AutoCode NI MATRIX Reference page 189

National instruments ni matrixx reference manual
Table of Contents

Advertisement

Chapter 6
Vectorized Code Generation
INIT := TRUE;
X := ptr_of(ss_1_states(0)'address);
XD := ptr_of(ss_1_states(1)'address);
X.sensor_delay := (others => 0.0);
XD.sensor_delay := (others => 0.0);
for cnt in RT_INTEGER range 0..10 loop
R_P(cnt) := RP(cnt);
end loop;
SUBSYS_PREINIT(1) := FALSE;
return;
end if;
------ Output Update. ------
-- ----------------------------
-- {VecEx..12} --
if INIT then
k_1 := 0;
for i_1 in RT_INTEGER range 1..5 loop
X.sensor_delay(k_1) := R_P(i_1);
k_1 := k_1 + 1;
end loop;
end if;
k_1 := 1;
for i_1 in RT_INTEGER range 1..5 loop
Y.delayed_pulse(-1+i_1) := X.sensor_delay(-1+k_1);
k_1 := k_1 + 1;
end loop;
-- ----------------------------
-- {VecEx..2} --
for i_1 in RT_INTEGER range 1..5 loop
Throttle(-1+i_1) := R_P(5+i_1)*U.sensor_5(-1+i_1);
end loop;
------ State Update. ------
-- ----------------------------
-- {VecEx..12} --
k_1 := 0;
for i_1 in RT_INTEGER range 1..5 loop
XD.sensor_delay(k_1) := Throttle(-1+i_1);
k_1 := k_1 + 1;
end loop;
AutoCode Reference
Time Delay --
Gain Block --
Time Delay --
6-26
ni.com

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