| Contents | Index |
real_T *ssGetRWork(SimStruct *S)
A pointer (real_T *) to the RWork vector.
Use to access the floating-point work vector used by the block represented by S. The vector consists of elements of type real_T and is of length ssGetNumRWork(S). Typically, this vector is initialized in mdlStart or mdlInitializeConditions, updated in mdlUpdate, and used in mdlOutputs. You can use this macro in the simulation loop, mdlInitializeConditions, or mdlStart routines.
C, C++
See the S-function sfun_dynsize.c used in sfcndemo_sfun_dynsize.mdl and the S-function sfunmem.c used in the model sfcndemo_sfunmem.mdl.
ssGetNumRWork, ssGetRWorkValue, ssSetRWorkValue

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 |