ssSetCallSystemOutput

Specify that an output port is issuing a function call

Syntax

void ssSetCallSystemOutput(SimStruct *S, int_T element_index)

Arguments

S

SimStruct representing an S-Function block.

element_index

Index of the element of the first output port that is issuing a function call.

Description

Use in mdlInitializeSampleTimes to specify that the output port element specified by element_index is issuing a function call by using ssCallSystemWithTid(S,index,tid). The index specified starts at 0 and must be less than ssGetOutputPortWidth(S,0). See Function-Call Subsystems and S-Functions for more information.

Languages

C, C++

Example

See the S-function sfun_fcncall.csfun_fcncall.c.

Was this topic helpful?