Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

mdlEnable - Respond to enabling of an enabled system containing this block

Required

No

C Syntax

#define MDL_ENABLE
void mdlEnable(SimStruct *S)

C Arguments

S

SimStruct representing an S-Function block.

M Syntax

Enable(s)

M Arguments

s

Instance of Simulink.MSFcnRunTimeBlock class representing the Level-2 M-File S-Function block.

Description

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.

Languages

C, C++, M

See Also

mdlDisable

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2010- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS