Writing S-Functions    
ssSetDWorkName

Specify the name of a data type work vector.

Syntax

Arguments
S
   SimStruct representing an S-function block.

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

name
   Name of work vector.

Description

Use in mdlInitializeSizes or in mdlSetWorkWidths to specify a name for the specified data type work vector. The Real-Time Workshop uses this name to label the work vector in generated code. If you do not specify a name, the Real-Time Workshop generates a name for the work vector.

Languages

C, C++

See Also
ssGetDWorkName, ssSetNumDWork


 ssSetDWorkDataType ssSetDWorkUsedAsDState