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 that represents 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.Signalobject, 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.
- 0instructs the Simulink® engine to try to resolve the DWork vector to a- Simulink.Signalobject. The engine only tries to resolve the DWork vector to a- Simulink.Signalobject if implicit signal resolution is enabled. The Data Validity parameter Signal resolution on the Diagnostics pane of the Configuration Parameters dialog box controls implicit signal resolution. When this option is set to- Explicit only, the engine interprets a flag of- 0as it would a flag of- 2. See the Signal resolution reference page in Simulink Graphical User Interface for more information on implicit signal resolution.
- 1declares that the DWork vector must resolve to a- Simulink.Signalobject. The engine invokes an error if it cannot resolve the DWork vector to a- Simulink.Signalobject.
- 2instructs the engine to not try to resolve the DWork vector to a- Simulink.Signalobject.
For more information on using DWork vectors, see How to Use DWork Vectors.
Languages
C, C++
Version History
Introduced in R2007b