Get a block's discrete states
real_T *ssGetDiscStates(SimStruct *S)
SimStruct representing an S-Function block.
A pointer (
real_T *) to the discrete state vector as an array
if the S-function does not have any discrete states.
Use to obtain the block's discrete states. Typically, the state vector is
mdlInitializeConditions, updated in
mdlUpdate, and used in
mdlOutputs. You can
use this macro in the simulation loop,