CheckSignalMatch
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DEFunction Syntax
long CheckSignalMatch(Signal aSignal, float aCompareValue); // form 1long CheckSignalMatch(dbEnvVar aEnvVar, float aCompareValue); // form 2long CheckSignalMatch(sysvar aSysVar, float aCompareValue); // form 3long CheckSignalMatch(sysvar aSysVar, int64 aCompareValue); // form 4long CheckSignalMatch(ServiceSignalNumber aSignal, float aCompareValue); // form 5
Description
Checks the given value against the value of signal, the system or the environment variable. The resolution of the signal is considered.Parameters
- aSignal: The signal to be polled.
- aEnvVar: The environment variable to be polled.
- aSysVar: The system variable to be polled. May also be a specific element of a variable of type struct or generic array. Note: Not available for a single element of a double or integer array.
- aCompareValue: Value which is compared to the signal or system variable value.
Return Values
- 1: If the condition is TRUE
- 0: If the condition is violated or the signal or system variable is unavailable, i.e. was not on the bus yet
- -1: General error