| Contents | Index |
int_T ssCallSystemWithTid(SimStruct *S, int_T element, int_T tid)
SimStruct representing an S-Function block.
Index of the output port element corresponding to the function-call subsystem.
Task ID.
An int_T 1 if successful; otherwise, 0.
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.
Note ssCallSystemWithTid can only be used with function-call subsystems that either hold or inherit their states, based on the setting of the States when enabling parameter of the function-call subsystem's Trigger block. If the function-call subsystem needs to have its states reset upon enabling, the S-function must explicitly enable and disable the function-call subsystem using ssSetExplicitFCSSCtrl, ssEnableSystemWithTid and ssDisableSystemWithTid. |
C, C++
See the S-function sfun_fcncall.c.
ssSetCallSystemOutput, ssDisableSystemWithTid, ssEnableSystemWithTid

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 |