Writing S-Functions    
ssSetOutputPortSampleTime

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.

Sample time of output port.

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

C

See Also
ssSetNumOutputPorts, ssSetOutputPortOffsetTime


  ssSetOutputPortReusable ssSetOutputPortVectorDimension