Writing S-Functions    
ssSetVectorMode

Specify the vector mode that an S-function supports.

Syntax

Arguments

S
   SimStruct representing an S-Function block.

mode
   Vector mode.

Description

Specifies the types of vector-like signals that an S-Function block's input and output ports support. Simulink uses this information during signal dimension propagation to check the validity of signals connected to the block or emitted by the block. The enumerated type ssVectorMode defines the set of values that mode can have.

Mode Value
Signal Dimensionality Supported
SS_UNKNOWN_MODE
Unknown
SS_1_D_OR_COL_VECT
1-D (vector) or single-column 2-D (column vector)
SS_1_D_OR_ROW_VECT
1-D or single-row 2-D (row vector) signals
SS_1_D_ROW_OR_COL_VECT
Vector or row or column vector
SS_1_D_VECT
Vector
SS_COL_VECT
Column vector
SS_ROW_VECT
Row vector

Languages

C

Example

See simulink/src/sfun_bitop.c for examples that use this macro.


  ssSetUserData ssUpdateAllTunableParamsAsRunTimeParams