Writing S-Functions | ![]() ![]() |
Specify the sample time index of an input port.
Syntax
Arguments
S
SimStruct representing an S-Function block or a Simulink model.
inputPortIdx
Index of the input port whose sample time index is being set.
Description
Use in mdlInitializeSizes
(after ssSetNumInputPorts
) to specify the index of the sample time for the port to be used in mdlOutputs
and mdlOutputs
when checking for sample hits.
Note
This should only be used when the PORT_BASED_SAMPLE_TIMES has been specified for ssSetNumSampleTimes in mdlInitializeSizes .
|
Languages
See Also
ssGetInputPortSampleTimeIndex, mdlInitializeSizes, ssSetNumInputPorts, mdlOutputs, mdlOutputs
![]() | ssSetInputPortSampleTime | ssSetInputPortVectorDimension | ![]() |