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.

ssGetDWorkRTWTypeQualifier

Get the C type qualifier (e.g., const) used to declare a DWork vector in code generated from the associated S-function

Syntax

char_T *ssGetDWorkRTWTypeQualifier(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 a character vector indicating the C type qualifier used to declare the DWork vector specified by the index vector. Returns NULL if no type qualifier is specified.

Description

Use to obtain the C type qualifier (e.g., const) used to declare the DWork vector specified by vector in code generated by the Simulink® Coder™ product from the associated S-function.

Languages

C, C++

Example

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

Introduced before R2006a

Was this topic helpful?