Get the name of a data type work vector
char_T *ssGetDWorkName(SimStruct *S, int_T vector)
A pointer (char_T *) to the string representing the name of the DWork vector specified by the index vector.
The following lines get the DWork vector name and display it at the MATLAB® command prompt.
char_T *dname = ssGetDWorkName(S, 0); ssPrintf("Initial value of %s has been set to 1\n",dname);