Skip to main content

ChkQuery_StatNumProbes

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

long ChkQuery_StatNumProbes (dword aCheckId);

Method Syntax

Method Syntax
check.QueryStatNumProbes();

Description

Returns the number of samples (probes) that have been considered by the check. In general, this is the count of messages that have been analyzed by the check. In almost all signal/envvar/sysvar orientated checks, it is the number of changes in value of the specific signal or variable. Deviating from the default following checks return the number of value updates:
  • Fallback
  • Value Dependency

Parameters

  • aCheckId: Identifier of the queried Check.

Return Values

  • < 0: Refers the query error codes
  • 0: No event has occurred
  • > 0: Number of probes

Example

long result;
dword checkId;
checkId = ChkStart_MsgRelCycleTimeViolation(VehicleMotion, 0.9, 1.1);
// ... execute test sequence
result = ChkQuery_StatNumProbes(checkId);