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.

ssSetDWorkRTWIdentifier

Specify the identifier used to declare a DWork vector in code generated from the associated S-function

Syntax

char_T *ssSetDWorkRTWIdentifier(SimStruct *S, int_T vector, char_T *id)

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.

id

DWork vector Identifier.

Returns

A pointer (char_T *) to the Simulink® Coder™ identifier entered in id.

Description

Specifies id as the identifier used in code generated by the Simulink Coder product to declare the DWork vector specified by vector. For more information on using DWork vectors, see How to Use DWork Vectors.

This function must only be called from the mdlInitializeSizes or mdlSetWorkWidths functions.

Languages

C, C++

Example

See the S-function sfun_rtwdwork.c used in sfcndemo_sfun_rtwdwork.

Introduced in R2007b

Was this topic helpful?