Main Content

mdlSetupRuntimeResources

Perform any actions required once at the start of the simulation

Required

No

Languages

C, C++

Syntax

#define MDL_SETUP_RUNTIME_RESOURCES
void mdlSetupRuntimeResources(SimStruct *S)

Arguments

S

SimStruct representing an S-Function block.

Description

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).

Version History

Introduced in R2016b