| Contents | Index |
No
#define MDL_SET_OUTPUT_PORT_WIDTH
void mdlSetOutputPortWidth(SimStruct *S, int_T port, int_T width)
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. This method is only valid for simulation, and must be enclosed in a #if defined(MATLAB_MEX_FILE) statement.
C, C++
ssSetInputPortWidth, ssSetOutputPortWidth, ssSetErrorStatus

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |