Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

ssDisableSystemWithTid - Disable a function-call subsystem connected to this S-function block

Syntax

int_T ssDisableSystemWithTid(SimStruct *S, int_T element, int_T tid)

Arguments

S

SimStruct representing an S-Function block.

element

Index of the output port element corresponding to the function-call subsystem.

tid

Task ID.

Returns

An int_T 1 if successful; otherwise, 0.

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 the Simulink engine*/
  return;
}

This function resets the outputs of any Outport blocks in the function-call subsystem whose Outputs when disabled parameter is set to reset.

Languages

C, C++

Example

See the example in the reference page for ssEnableSystemWithTid.

See Also

ssCallSystemWithTid, ssEnableSystemWithTid, ssSetExplicitFCSSCtrl

  


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