Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

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 and S-Functions 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.

Languages

C, C++

Example

See the S-function sfun_fcncall.c.

Introduced before R2006a

Was this topic helpful?