Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

ssGetDWorkName

Get the name of a data type work vector

Syntax

char_T *ssGetDWorkName(SimStruct *S, int_T vector)

Arguments

S

SimStruct representing an S-Function block.

vector

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

Returns

A pointer (char_T *) to the character vector representing the name of the DWork vector specified by the index vector.

Description

Use to obtain the name of a particular DWork vector.

Languages

C, C++

Example

The following lines get the DWork vector name and display it at the MATLAB® command prompt.

char_T *dname = ssGetDWorkName(S, 0);
ssPrintf("Initial value of %s has been set to 1\n",dname);

Introduced before R2006a

Was this topic helpful?