Main Content

ssSetVectorMode

Specify the vector mode that an S-function supports

Syntax

void ssSetVectorMode(SimStruct *S, ssVectorMode mode)

Arguments

S

SimStruct that represents 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. The Simulink® engine 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, C++

Examples

The following statement

ssSetVectorMode(S, SS_1_D_OR_ROW_VECT);

indicates that the S-function supports row-vectors for the input and output port signals.

Version History

Introduced before R2006a