User`s guide

3 Writing S-Functions As C-MEX files
3-100
ssSetOptions
(S,options)
(continued)
SS_OPTION_ASYNCHRONOUS This option applies onlyto S-functions
that have 0 or 1 input ports and 1 output port. The output p ort
must be configured to perform function call s on every element. If
any of thes e requirements are no t met, the
SS_OPTION_ASYNCHRONOUS is ignored. Use this option when d riving
function-call subs yste ms that will be attached to interrupt service
routines.
SS_OPTION_ASYNC_RATE_TRANSITION —Usethiswhenyour
S-function converts a signal from one rate to another r ate.
SS_OPTION_RATE_TRANSITION Use this option when your
S-function is behaving as a unit delay or a ZOH. This macro
support these two operations only. It identifies a unit delay by the
presence of
mdlUpdate;ifmdlUpdate is absent, the operation is
taken to be ZOH.
Table 3-5: General SimStruct Macros (Continued)
Macro Description