Chapter 5
Generated Code Architecture
5-14
ni.com
EXEC_ERROR: return;
}
/******* Subsystem 1 *******/
void subsys_1(U, Y)
struct _Sys_ExtIn *U;
struct _Subsys_1_out *Y;
{
static RT_INTEGER iinfo[4];
/***** Local Block Outputs. *****/
RT_FLOAT foo_2_1;
static struct _foo_u foo_2_u;
static struct _foo_y foo_2_y;
static struct _foo_info foo_2_i;
static struct _foo_u foo_12_u;
static struct _foo_y foo_12_y;
static struct _foo_info foo_12_i;
struct _foo_info *foo_i;
/******* Initialization. *******/
if (SUBSYS_PREINIT[1]) {
iinfo[0] = 0;
iinfo[1] = 1;
iinfo[2] = 1;
iinfo[3] = 1;
foo_2_i.iinfo[0] = iinfo[0];
foo_2_i.iinfo[3] = iinfo[3];
/* Copy in variable pointers of procedure foo */
foo_2_i.GAIN = &A_GAIN;
foo_12_i.iinfo[0] = iinfo[0];
foo_12_i.iinfo[3] = iinfo[3];
/* Copy in variable pointers of procedure foo */
foo_12_i.GAIN = &B_GAIN;
SUBSYS_PREINIT[1] = FALSE;
return;
}
/***** Output Update. *****/
/* ---------------------------- Procedure SuperBlock */
/* {foo.2} */