Skip to Main Content Skip to Search
Product Documentation

ssCallSystemWithTid - Call the update and outputs methods of a function-call subsystem

Syntax

int_T ssCallSystemWithTid(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 call the update and outputs methods of a function-call subsystem connected to the S-function. The invoking syntax is

if (!ssCallSystemWithTid(S, element, tid)) {
  /* Error occurred which will be reported by the Simulink engine*/
  return;
}

See Function-Call Subsystems for more information on how to use ssCallSystemWithTid.

Languages

C, C++

Example

See the S-function sfun_fcncall.c.

See Also

ssSetCallSystemOutput, ssDisableSystemWithTid, ssEnableSystemWithTid

  


Related Products & Applications

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

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