Skip to Main Content Skip to Search
Product Documentation

ssGetModeVectorValue - Get an element of a block's mode vector

Syntax

int_T ssGetModeVectorValue(SimStruct *S, int_T elementx)

Arguments

S

SimStruct representing an S-Function block.

elementx

Index of a mode vector element.

Returns

An int_T value for the element of the mode vector specified by the index elementx. Returns NULL if no value was assigned into the elementx element of the mode vector.

Description

Use to obtain the specified mode vector element, where the element index start at 0 and end at the total number of modes minus 1.

Languages

C, C++

Example

The following statement

int_T v = ssGetModeVectorValue(S, 0);

is equivalent to

int_T* wv = ssGetModeVector(S);
int_T v = wv[0];

See Also

ssSetModeVectorValue, ssGetModeVector

  


Related Products & Applications

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

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