/* * File: Subsystem.c * * Code generated for Simulink model 'Subsystem'. * * Model version : 1.8 * Simulink Coder version : 8.0 (R2011a) 09-Mar-2011 * TLC version : 8.0 (Feb 3 2011) * C/C++ source code generated on : Sat Mar 24 22:27:10 2012 * * Target selection: ert.tlc * Embedded hardware selection: 32-bit Generic * Code generation objectives: Unspecified * Validation result: Not run */ #include "Subsystem.h" #include "Subsystem_private.h" /* Output and update for referenced model: 'Subsystem' */ void mr_Subsystem(const real_T *rtu_In1, real_T *rty_Out1) { /* Sum: '/Sum' incorporates: * Constant: '/Constant' * Gain: '/Gain' */ (*rty_Out1) = 2.0 * (*rtu_In1) + 1.0; } /* Model initialize function */ void mr_Subsystem_initialize(const char_T **rt_errorStatus, RT_MODEL_Subsystem * const Subsystem_M) { /* Registration code */ /* initialize error status */ rtmSetErrorStatusPointer(Subsystem_M, rt_errorStatus); } /* * File trailer for generated code. * * [EOF] */