ssSetDWorkRequireResetForSignalSize
Set the block flag for resetting the dIndex Dwork size upon subsystem reset.
Syntax
void ssSetDWorkRequireResetForSignalSize (SimStruct *S, int dIndex, SS_VariableSizeStateResetType type)
Arguments
S
SimStruct that represents an S-Function block.
dIndex
Dwork index.
type
Enum value corresponding to the signal size compute type.
Returns
No return value.
Description
Use this function in mdlSetWorkWidths to configure the need of resetting the size of the Dworks indexed by dIndex in case there is a subsystem reset. The possible types are SS_VARIABLE_SIZE_STATE_NO_NEED_RESET SS_VARIABLE_SIZE_REQUIRE_STATE_RESET Use SS_VARIABLE_SIZE_REQUIRE_STATE_RESET when the state requires reset when input size changes, and SS_VARIABLE_SIZE_STATE_NO_NEED_RESET otherwise.
Languages
C, C++
Examples
See the S-function sfun_varsize_holdStatesUntilReset.c
.
See Also
Version History
Introduced in R2009b