This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

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

Introduced in R2016b