User`s guide
The C MEX S-Function SimStruct
3-117
Table 3-12: Function-Call SimStruct Macros
Macro Description
ssSetCallSystemOutput
(S,index)
Used in mdlInitializeSampleTimes to specify that the a the
specified output port ele ment
index is issuing a function call by
using
ssCallSystemWithTid(S,index,tid).Theindex
specified starts at 0 and must be less than
ssGetOutputPortWidth(S,0).
ssCallSystemWithTid
(S,index,tid)
Used in mdlOutputs to execute a function-call subsystem
connected to the S-function. T he invoking syntax is:
if (!ssCallSystemWithTid(S,index, tid)) {
/* Error occurred which will be reported by
Simulink */
return;
}