Documentation Index
Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
TestWaitForJ1939PG
Valid for: CANoe DE • CANoe4SW DEFunction Syntax
long TestWaitForJ1939PG (dbMsg aMessage, dword aTimeout);long TestWaitForJ1939PG (dword aPGN, dword aTimeout);long TestWaitForJ1939PG (dword aPGN, dword aSourceAddress, dword aDestinationAddress, dword aTimeout);
Description
Waits for the occurrence of the specified J1939 parameter group. Should the message not occur before the expiration of the time aTimeout, the wait condition is resolved nevertheless. To get the message content of the parameter group which triggered the wait condition you can use function TestGetWaitJ1939PGData. Note: Dependent on the used parameter type the appropriate bus context in a multibus environment has only to be set before the function is called if the corresponding database object will be ambiguous. Further information on site MultiBus Environment.Parameters
- aMessage: Message that should be awaited. Must be a J1939 parameter group.
- aPGN: Parameter Group Number (with data page) of the message that should be awaited.
- aSourceAddress: Source address of the message that should be awaited or 0xFFFFFFFF if source address is ignored.
- aDestinationAddress: Destination address of the message that should be awaited or 0xFFFFFFFF if destination address is ignored.
- aTimeout: Maximum time that should be waited [ms] (Transmission of 0: no timeout controlling).
Return Values
- -2: Resume due to constraint violation
- -1: General error, for example, functionality is not available
- 0: Resume due to timeout
- 1: Resume due to event occurred