| Writing S-Functions | ![]() |
Disable a function-call subsystem connected to this S-function block.
Syntax
Arguments
S
SimStruct representing an S-Function block.
element
Index of the output port element corresponding to the function-call subsystem.
Description
Use in mdlOutputs to disable a function-call subsystem connected to the S-function. The invoking syntax is
if (!ssDisableSystemWithTid(S, element, tid)) { /* Error occurred which will be reported by Simulink */ return; }
| Note Before invoking this function, the S-function must have specified that it explicitly enables and disables the function-call subsystems that it calls. See ssSetExplicitFCSSCtrl for more information. If the S-function has not done this, invoking ssEnableSystemWithTid results in an error. |
This function resets the outputs of any Outport blocks in the function-call subsystem whose Outputs when disabled parameter is set to reset.
Languages
See Also
ssCallSystemWithTid, ssEnableSystemWithTid, ssSetExplicitFCSSCtrl
| ssCallSystemWithTid | ssEnableSystemWithTid | ![]() |
© 1994-2005 The MathWorks, Inc.