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 |
---|---|
|
Unknown |
|
1-D (vector) or single-column 2-D (column vector) |
|
1-D or single-row 2-D (row vector) signals |
|
Vector or row or column vector |
|
Vector |
|
Column vector |
|
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