Writing S-Functions | ![]() ![]() |
Specify the direct feedthrough status of a block's ports.
C Syntax
void ssSetInputPortDirectFeedThrough(SimStruct *S, int_T port, int_T dirFeed)
Ada Syntax
procedure ssSetInputPortDirectFeedThrough(S : in SimStruct; port : in Integer := 0; dirFeed : in Boolean);
Arguments
S
SimStruct representing an S-function block or a Simulink model.
dirFeed
Direct feedthrough status of block specified by inputPortIdx.
Description
Use in mdlInitializeSizes
(after ssSetNumInputPorts
) to specify the direct feedthrough (0 or 1) for each input port index. If not specified, the default direct feedthrough is 0. Setting direct feedthrough to 0 for an input port is equivalent to saying that the corresponding input port signal is not used in mdlOutputs
or mdlGetTimeOfNextVarHit
. If it is used, you may or may not see a delay of one simulation step in the input signal. This may cause the simulation solver to issue an error due to simulation inconsistencies.
Languages
See Also
ssSetInputPorts
![]() | ssSetInputPortFrameData | ssSetInputPortMatrixDimensions | ![]() |