Products & Services Solutions Academia Support User Community Company

Learn more about Simulink   

ssGetPWork - Get a block's pointer work vector

Syntax

void **ssGetPWork(SimStruct *S)

Arguments

S

SimStruct representing an S-Function block.

Returns

A pointer to the PWork vector.

Description

Use to access the pointer work vector used by the block represented by S. The vector consists of elements of type void * and is of length ssGetNumPWork(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, C++

See Also

ssGetNumPWork, ssGetPWorkValue

  


Related Products & Applications

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS