| Writing S-Functions | ![]() |
Specify the offset time of an input port.
Syntax
void ssSetInputPortOffsetTime(SimStruct *S, int_T inputPortIdx, int_T period)
Arguments
S
SimStruct representing an S-function block or a Simulink model.
offset
Description
Use in mdlInitializeSizes (after ssSetNumInputPorts) to specify the sample time offset for each input port index. You can use this macro in conjunction with ssSetInputPortSampleTime if you have specified port-based sample times for your S-function.
Languages
See Also
ssSetNumInputPorts, ssSetInputPortSampleTime
| ssSetInputPortMatrixDimensions | ssSetInputPortOverWritable | ![]() |