Chapter 6
Vectorized Code Generation
©
National Instruments Corporation
6-9
Figure 6-2.
Example Model Diagram
Example 6-4
Maximal Vectorized Code Generation (for Figure 6-2)
/******* System Ext I/O type declarations. *******/
struct _Subsys_1_out {
RT_FLOAT delayed_pulse[5];
};
struct _Sys_ExtIn {
RT_FLOAT sensor_5[5];
};
/***** States type declaration. *****/
struct _Subsys_1_states {
RT_FLOAT sensor_delay[5];
};
void subsys_1(U, Y)
struct _Sys_ExtIn *U;
struct _Subsys_1_out *Y;
{
/***** States Array. *****/
static struct _Subsys_1_states ss_1_states[2];