Writing S-Functions Previous page   Next Page
ssGetRWork

Get a block's floating-point work vector

Syntax

Arguments

S
   SimStruct representing an S-Function block.

Description

Returns 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.

Languages

C

See Also

ssGetNumRWork, ssGetRWorkValue, ssSetRWorkValue


Previous page  ssGetRunTimeParamInfo ssGetRWorkValue Next page

© 1994-2005 The MathWorks, Inc.