Perform any actions required once at the start of the simulation
No
C, C++
#define MDL_SETUP_RUNTIME_RESOURCES
void mdlSetupRuntimeResources(SimStruct *S)
S
SimStruct representing an S-Function block.
The Simulink® engine invokes this optional method at the end of compilation. The method performs setup activities that this S-function requires only once irrespective of the number of simulations that follow (such as in a Fast Restart scenario).
mdlInitializeConditions
, ssGetContStates
, ssGetDiscStates
, Start
, Get Started with Fast Restart