Main Content

ssGetDWorkUsageType

Determine how DWork vector is used in S-function

Syntax

ssDWorkUsageType ssGetDWorkUsageType(SimStruct *S, int_T vector)

Arguments

S

SimStruct that represents an S-Function block.

vector

Index of the Dwork vector.

Returns

One of the enumerated types defined for ssDWorkUsageType in simstruc_types.h. Permissible values are:

  • SS_DWORK_USED_AS_DWORK

  • SS_DWORK_USED_AS_DSTATE

  • SS_DWORK_USED_AS_SCRATCH

  • SS_DWORK_USED_AS_MODE

Description

Use this macro to determine how the DWork vector specified by the vector is being used in the S-function. By default, a DWork vector returns SS_DWORK_USED_AS_DWORK.

Languages

C, C++

Examples

For more information on using DWork vectors, see How to Use DWork Vectors.

Version History

Introduced in R2007a