Skip to Main Content Skip to Search
Product Documentation

ssGetDWork - Get a DWork vector

Syntax

void *ssGetDWork(SimStruct *S, int_T vector)

Arguments

S

SimStruct representing an S-Function block.

vector

Index of a data type work vector, where the index is one of 0, 1, 2, ... ssGetNumDWork(S)-1.

Returns

A pointer (void *) to the DWork vector specified by the index vector.

Description

Use to obtain a pointer to a particular DWork vector. See How to Use DWork Vectors for more information on DWork vectors.

Languages

C, C++

Example

See the S-function sfun_rtwdwork.c used in sfcndemo_sfun_rtwdwork.mdl to learn how to use DWork vectors in an S-function.

See Also

ssSetNumDWork

  


Related Products & Applications

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