TestWaitForSignalMatch
Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DEFunction Syntax
long TestWaitForSignalMatch (Signal aSignal, float aCompareValue, dword aTimeout); // form 1long TestWaitForSignalMatch (dbEnvVar aEnvVar, float aCompareValue, dword aTimeout); // form 2long TestWaitForSignalMatch (sysvar aSysVar, float aCompareValue, dword aTimeout); // form 3long TestWaitForSignalMatch (sysvar aSysVar, int64 aCompareValue, dword aTimeout); // form 4long TestWaitForSignalMatch (ServiceSignalNumber aSignal, float aCompareValue, dword aTimeout); // form 5
Description
Waits until the signal, the system variable or the environment variable matches the given value or the timeout is reached. The resolution of the signal is considered. If this condition is already met when this function is called, it returns immediately without waiting.Parameters
- aSignal: Signal to be queried.
- aEnvVar: Environment variable to be queried.
- aSysVar: System variable to be queried. 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 value.
- aTimeout: Maximum time that should be waited [ms]. Transmission of 0: no timeout controlling.
Return Values
- -1: General error
- -2: Signal or system variable is not valid
- 0: Wait state is exited due to a timeout
- 1: Wait state is exited due to condition fulfillment