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.

mdlDisable

Respond to disabling of an enabled system containing this block

Required

No

Languages

C, C++

Syntax

#define MDL_DISABLE
void mdlDisable(SimStruct *S)

Arguments

S

SimStruct representing an 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 an enabled to a disabled state at the current time step. Your S-function can use this method to perform any actions required by the disabling of the containing subsystem.

Introduced before R2006a