| Writing S-Functions | ![]() |
Specify the sample time of an output port
Syntax
Arguments
S
SimStruct representing an S-Function block.
outputPortIdx
Index of the output port whose sample time is being set.
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
| ssSetOutputPortOverwritesInputPort | ssSetOutputPortVectorDimension | ![]() |
© 1994-2005 The MathWorks, Inc.