Skip to main content

ChkQuery_EventSignalValue_AsyncResult

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

  • long ChkQuery_EventSignalValue_AsyncResult(dword checkId, double pValue[]); // form 1
  • long ChkQuery_EventSignalValue_AsyncResult(dword checkId, int64& value); // form 2

Method Syntax

  • check.QueryEventSignalValueAsyncResult(double pValue[]); // form 1
  • check.QueryEventSignalValueAsyncResult(int64& value); // form 2

Description

This function enables access to the signal value which was last reported by a check as invalid. The signature of the function with the same name without the pValue parameter enables access only to positive signal values. This function enables access to signal values in any directory. The data has to be queried first using testWaitForCheckQuery.

Parameters

  • checkId: Identifier of the queried Check.
  • *double pValue:
    • Note: This requires the transfer of an array.

Return Values

Available For

Example

result = testWaitForCheckQuery(checkId, 10000);
if (result == 1)
{
  double lBadValue[1]; // use an array to allow "call-by-reference"; length: 1 element
  ChkQuery_EventSignalValue_AsyncResult(aCheckId, lBadValue);
  write("Last bad signal value=%g", lBadValue[0]);
}