Writing S-Functions | ![]() ![]() |
Specify the storage class of a DWork vector in code generated from the associated S-function.
Syntax
Arguments
S
SimStruct representing an S-Function block.
idx
Index of the work vector, where the index is one of 0
, 1
, 2
, ...
ssGetNumDWork(S)
.
sc
Storage class of the work vector. Must be one of the values enumerated by ssRTWStorageType
in simstruc.h
:
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
Sets sc
as the storage class of the the DWork vector specified by idx
. The storage class is a code-generation attribute that determines how the code generated by the Real-Time Workshop for this S-function allocates memory for this work vector (see Signal Storage Concepts in the online documentation for the Real-Time Workshop).
Languages
See Also
ssGetDWorkRTWStorageClass
![]() | ssSetDWorkRTWIdentifier | ssSetDWorkRTWTypeQualifier | ![]() |