image thumbnail
from Motion Control Demo by Paul Lambrechts
Model Based Design Demonstration Based on a Motion Control Case Study

rt_zcfcn_h.html
RTW Report - rt_zcfcn.h

File: c:\work\demos\DMC\DEMO\RP\DMC_system_demo_xpc_rtw\rt_zcfcn.h

    1   /*
    2    * rt_zcfcn.h
    3    *
    4    * Real-Time Workshop code generation for Simulink model "DMC_system_demo.mdl".
    5    *
    6    * Model Version              : 1.465
    7    * Real-Time Workshop version : 7.0  (R2007b)  02-Aug-2007
    8    * C source code generated on : Wed Oct 24 16:51:00 2007
    9    */
   10   
   11   #ifndef RTW_HEADER_rt_zcfcn_h_
   12   #define RTW_HEADER_rt_zcfcn_h_
   13   #include "rtwtypes.h"
   14   #include "solver_zc.h"
   15   # define rt_SET_RZC_SIGSTATE(sig)      ( ((sig) < 0.0) ? NEG_ZCSIG : ((sig) > 0.0 ? POS_ZCSIG : ZERO_ZCSIG) )
   16   #define rt_SET_IZC_SIGSTATE(sig)       ( ((sig) < 0) ? NEG_ZCSIG : ((sig) > 0 ? POS_ZCSIG : ZERO_ZCSIG) )
   17   #define rt_SET_UZC_SIGSTATE(sig)       (((sig) > 0)? POS_ZCSIG : ZERO_ZCSIG)
   18   #define rt_SET_BZC_SIGSTATE(sig)       ((sig)? POS_ZCSIG : ZERO_ZCSIG)
   19   #ifndef slZcHadEvent
   20   #define slZcHadEvent(ev, zcsDir)       ( (ev & zcsDir) != 0x00 )
   21   #endif
   22   
   23   #ifndef slZcUnAliasEvents
   24   #define slZcUnAliasEvents(evL, evR)    ( ( ( slZcHadEvent(evL,SL_ZCS_EVENT_N2Z) && slZcHadEvent(evR,SL_ZCS_EVENT_Z2P) ) || ( slZcHadEvent(evL,SL_ZCS_EVENT_P2Z) && slZcHadEvent(evR,SL_ZCS_EVENT_Z2N) ) ) ? SL_ZCS_EVENT_NUL : evR )
   25   #endif
   26   
   27   extern ZCEventType rt_ZCFcn(ZCDirection direction,
   28     ZCSigState *prevzc,
   29     real_T zcSig);
   30   
   31   #endif                                 /* RTW_HEADER_rt_zcfcn_h_ */

Contact us at files@mathworks.com