Main Content

ssGetDWorkRTWStorageClass

Get the storage class of a DWork vector in code generated from the associated S-function

Syntax

ssRTWStorageType ssGetDWorkRTWStorageClass(SimStruct *S, int_T vector)

Arguments

S

SimStruct that represents an S-Function block.

vector

Index of the work vector, where the index is one of 0, 1, 2, ... ssGetNumDWork(S)-1.

Returns

One of the enumerated types defined for ssRTWStorageType. Permissible values are:

typedef enum { 
    SS_RTW_STORAGE_AUTO = 0, 
    SS_RTW_STORAGE_EXPORTED_GLOBAL, 
    SS_RTW_STORAGE_IMPORTED_EXTERN, 
    SS_RTW_STORAGE_IMPORTED_EXTERN_POINTER 
} ssRTWStorageType;

Description

Use to obtain the storage class of the DWork vector specified by vector. The storage class is a code-generation attribute that determines how code generated by the Simulink® Coder™ product for this S-function allocates memory for this work vector (see How Generated Code Stores Internal Signal, State, and Parameter Data (Simulink Coder)).

Languages

C, C++

Version History

Introduced before R2006a