Get the number of discrete states that a block has
int_T ssGetNumDiscStates(SimStruct *S)
S
SimStruct representing an S-Function block or a Simulink® model.
An int_T
value indicating the number of discrete states.
Use in any routine (except mdlInitializeSizes
) to determine the
number of discrete states in the S-function or model.
C, C++
See the S-function stvdtf.c
used in sfcndemo_stvdtf
.