Respond to enabling of a enabled system containing this block
No
C, C++
#define MDL_ENABLE
void mdlEnable(SimStruct *S)
S
SimStruct representing an S-Function block.
The Simulink® engine invokes this optional method if this block resides in an enabled subsystem and the enabled subsystem changes from a disabled to an enabled state at the current time step. Your S-function can use this method to perform any actions required by the enabling of the containing subsystem.