| Contents | Index |
char_T *ssGetDWorkName(SimStruct *S, int_T vector)
SimStruct representing an S-Function block.
Index of the work vector, where the index is one of 0, 1, 2, ... ssGetNumDWork(S)-1.
A pointer (char_T *) to the string representing the name of the DWork vector specified by the index vector.
Use to obtain the name of a particular DWork vector.
C, C++
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);
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 |