Skip to Main Content Skip to Search
Product Documentation

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 representing 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++

Example

See the S-function sfun_varsize_holdStatesUntilReset.c.

See Also

mdlSetWorkWidths

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2012- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS