User`s guide

Examples of C MEX-File S-Function Blocks
3-57
during which it calls mdlOutputs and mdlDerivatives. Each of these pairs of
callsisreferredtoasanintegration stage. The integration returns with the
continuous states updated and the simulation time moved forward. Time is
moved forward as far as possible, providing that error tolerances in the state
are met. The maximum time step is subject to constraints of discrete events
such as the actual simulation stop time and the user-imposed limit.
Note that
csfunc.c specifies that the input port has direct feedthrough. This
is because matrix
D is initialized to a nonzero matrix. If D were set equal to a
zero m atrix in the state-space representation, the input signal isn’t used in
mdlOutputs.In thiscase,thedirectfeedthroughcan besetto0,whichindicates
that
csfunc.c does not require the input signal when executing mdlOutputs.