Perform any actions required once at the start of the simulation
#define MDL_SETUP_RUNTIME_RESOURCES void mdlSetupRuntimeResources(SimStruct *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).