Writing S-Functions | ![]() ![]() |
Set the width of an output port that outputs 1-D (vector) signals.
Syntax
Arguments
S
SimStruct representing an S-Function block.
Description
This method is called with the candidate width for a dynamically sized port. If the proposed width is acceptable, the method should go ahead and set the actual port width, using ssSetOutputPortWidth
. If the size is unacceptable, an error should be generated via ssSetErrorStatus
. Note that any other dynamically sized input or output ports whose widths are implicitly defined by virtue of knowing the width of the given port can also have their widths set via calls to ssSetInputPortWidth
or ssSetOutputPortWidth
.
Languages
See Also
ssSetInputPortWidth, ssSetOutputPortWidth, ssSetErrorStatus
![]() | mdlSetOutputPortSampleTime | mdlSetWorkWidths | ![]() |