National-instruments AutoCode NI MATRIX Manual de usuario Pagina 172

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 250
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 171
Chapter 6 Vectorized Code Generation
© National Instruments Corporation 6-9 AutoCode Reference
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];
Vista de pagina 171
1 2 ... 167 168 169 170 171 172 173 174 175 176 177 ... 249 250

Comentarios a estos manuales

Sin comentarios