| Contents | Index |
boolean_T ssSetNumDWork(SimStruct *S, int_T nDWork)
The Boolean value true if nDWork is zero or a positive integer; otherwise, false.
Use in mdlInitializeSizes to specify the number of data type work vectors as 0, a positive integer, or DYNAMICALLY_SIZED. If you specify DYNAMICALLY_SIZED, you can specify the true (positive integer) number of vectors in mdlSetWorkWidths.
You can specify the size and data type of each work vector, using the macros ssSetDWorkWidth and ssSetDWorkDataType, respectively. You can also specify that the work vector holds complex values, using ssSetDWorkComplexSignal. Use ssSetDWorkName to specify a name for the work vector.
C, C++
See the S-function sfun_rtwdwork.c used in sfcndemo_sfun_rtwdwork.mdl.
ssGetNumDWork, ssSetDWorkWidth, ssSetDWorkDataType, ssSetDWorkComplexSignal, ssSetDWorkName

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 |