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.
TestGetWaitEventKLineByte
Valid for: CANoe DE • CANoe4SW DE
Function Syntax
long TestGetKLineByte();
long TestGetKLineByte(int64 timeStampOut);
Description
If a byte is the last event that triggers a wait instruction, the content can be called up with the first function. The second function allows to call the content and the end of byte time stamp.
Parameters
- timeStampOut: End of byte time stamp.
Return Values
Value of the byte
Example
DiagRequest EcuIdentification_Read req;
int64 timeStamps;
Byte byteValue;
DiagSetTarget("DUT");
req.SendRequest();
if (1 == TestWaitForDiagKLinebyteTransmitted(5000))
{
TestStepPass("Transmitted KLine frame.");
byteValue = TestGetWaitEventKLineByte( timeStamp) ;
write( "TRANSMITTED BYTE VALUE: 0x%x. TIMESTAMP [%.3f]", byteValue, timeStamp/1000000000.0);
}
else
{
TestStepFail("No confirmation of transmitted K-Line byte.");
}
TestWaitForDiagKLineByteReceived • TestWaitForDiagKLineByteTransmitted