| Writing S-Functions | ![]() |
Specify the sample time of an output port.
Syntax
ssSetOutputPortSampleTime(SimStruct *S,outputPortIdx,period)
Arguments
S
SimStruct representing an S-function block.
period
Description
Use in mdlInitializeSizes (after ssSetNumOutputPorts) to specify the sample time period as continuous or as a discrete value for each output port index. This should only be used if you have specified port-based sample times.
Languages
See Also
ssSetNumOutputPorts, ssSetOutputPortOffsetTime
| ssSetOutputPortReusable | ssSetOutputPortVectorDimension | ![]() |