TestWaitForRawSignalMatch
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
TestWaitForRawSignalMatch(dbSignal aSignal, int64 value, dword aTimeout); // form 1TestWaitForRawSignalMatch(char aSignalName[], int64 value, dword aTimeout); // form 2TestWaitForRawSignalMatch(dbSignal aSignal, byte data[], dword dataLength, dword aTimeout); // form 3TestWaitForRawSignalMatch(char aSignalName[], byte data[], dword dataLength, doword aTimeout); // form 4
Description
Checks the given raw value against the value of the signal. The resolution of the signal is considered. If this condition is already met when this function is called, it returns immediately without waiting. The test step is evaluated as either passed or failed depending on the results.Parameters
- aSignal: The signal.
- aSignalName: Name of the signal.
- value: Signal value to be set.
- data: The data bytes of the signal.
- dataLength: Length of the data.
- aTimeout: Maximum time that should be waited [ms]. Transmission of 0: no timeout controlling.
Return Values
- -1: General error
- -2: Signal is not valid
- 0: Wait state is exited due to a timeout
- 1: Wait state is exited due to condition fulfillment