Skip to Main Content Skip to Search
Product Documentation

ssGetDWorkRTWIdentifier - Get the identifier used to declare a DWork vector in code generated from the associated S-function

Syntax

char_T *ssGetDWorkRTWIdentifier(SimStruct *S, int_T vector) 

Arguments

S

SimStruct representing an S-Function block.

vector

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

Returns

A pointer (char_T *) to the string used as the Simulink Coder identifier for the DWork vector specified by the index vector. Returns NULL if no Simulink Coder identifier is specified.

Description

Use to obtain the identifier used in code generated by the Simulink Coder product to declare the DWork vector specified by vector.

Languages

C, C++

Example

See the S-function sfun_rtwdwork.c used in sfcndemo_sfun_rtwdwork.mdl to learn how to use DWork vectors in an S-function.

See Also

ssSetDWorkRTWIdentifier

  


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