Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

mdlSetInputPortDimensionsModeFcn - Propagate the dimensions mode

Required

No

C Syntax

void mdlSetInputPortDimensionsModeFcn(SimStruct *S, int_T portIdx, 
DimensionsMode_T dimsMode)

C Arguments

S

SimStruct representing an S-Function block.

portIdx

Index of a port.

dimsMode

Current dimensions mode. Possible values are INHERIT_DIMS_MODE FIXED_DIMS_MODE and VARIABLE_DIMS_MODE

M Syntax

SetInputPortDimensionsMode(s, port, dm)

M Arguments

s

Instance of Simulink.MSFcnRunTimeBlock class representing the Level-2 M-File S-Function block.

port

Integer value specifying index of port to be set.

dm

Integer value representing the dimensions mode of the port.

Description

The Simulink engine calls this optional method to enable this S-function to set the dimensions mode of the input port indexed by portIdx.

C Example

See matlabroot/toolbox/simulink/simdemos/simfeatures/src/sfun_varsize_holdStatesUntilReset.c for an example of how to use this function.

Languages

C, C++, M

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS