Skip to Main Content Skip to Search
Product Documentation

ssSetDWorkRTWIdentifierMustResolveToSignalObject - Specify if a DWork vector resolves to a Simulink.Signal object

Syntax

uint_T ssSetDWorkRTWIdentifierMustResolveToSignalObject(SimStruct *S, int_T vector, uint_T flag)

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.

flag

Flag to control if the DWork vector resolves to a Simulink.Signal object, either 0, 1, or 2.

Returns

The value for flag if flag is 0, 1, or 2. Otherwise, returns 0.

Description

Use this function in mdlInitializeSizes to set a flag that controls if the DWork vector specified by vector resolves to a Simulink.Signal object. The input argument flag takes one of the following three values.

For more information on using DWork vectors, see Using Work Vectors.

Languages

C, C++

See Also

ssGetDWorkRTWIdentifierMustResolveToSignalObject

  


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