File: C:\MATLAB6p5\work\atomicdemo_ert_rtw/myfile.c

    1   /*
    2    * Real-Time Workshop code generation for Simulink system "<Root>/system1"
    3    *
    4    * Model                                : atomicdemo
    5    * Model Version                        : 1.46
    6    * Real-Time Workshop file version      : 5.0 $Date: 2002/05/30 19:21:33 $
    7    * Real-Time Workshop file generated on : Wed Mar 24 14:33:27 2004
    8    * TLC version                          : 5.0 (Jun 18 2002)
    9    * C source code generated on           : Wed Mar 24 14:33:27 2004
   10    *
   11    * Note that the functions contained in this file are part of a Simulink
   12    * model, and are not self-contained algorithms.
   13    */
   14   
   15   #include "myfile.h"
   16   
   17   /* Include model header file for global data */
   18   #include "atomicdemo.h"
   19   
   20   #include "atomicdemo_private.h"
   21   
   22   /* Output and update for atomic system:   
   23    *   '<Root>/system1'
   24    *   '<Root>/system2'
   25    */
   26   void myfun(real_T input, rtB_myfun *localB, rtDW_myfun *localDW)
   27   {
   28     /* local block i/o variables */
   29     real_T rtb_Gain;
   30   
   31     /* UnitDelay: '<S1>/Delay' */
   32     localB->Delay = localDW->Delay_DSTATE;
   33   
   34     /* Gain: '<S1>/Gain'
   35      *
   36      * Regarding '<S1>/Gain':
   37      *   Gain value: 5.0
   38      */
   39     rtb_Gain = input * 5.0;
   40   
   41     /* UnitDelay Block: <S1>/Delay */
   42     localDW->Delay_DSTATE = rtb_Gain;
   43   }
   44