Documentation Center

  • Trials
  • Product Updates

Contents

mdlSetInputPortDimensionsModeFcn

Propagate the dimensions mode

Required

No

Languages

C, C++

Syntax

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

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

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 sfun_varsize_holdStatesUntilReset.csfun_varsize_holdStatesUntilReset.c for an example of how to use this function.

Was this topic helpful?