| Contents | Index |
CSignal_T ssGetDWorkComplexSignal(SimStruct *S, int_T vector)
SimStruct representing an S-Function block.
Index of a data type work vector, where the index is one of 0, 1, 2, ... ssGetNumDWork(S)-1.
COMPLEX_YES (1) if the specified vector contains complex numbers; otherwise, COMPLEX_NO (0).
Use to determine the numeric type of the DWork vector specified by the index vector.
C, C++
The following example throws an error if the first DWork vector is not complex.
CSignal_T cs = ssGetDWorkComplexSignal(S, 0);
if(cs == COMPLEX_NO) {
ssSetErrorStatus(S,"Signal must be complex.");
}
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 |