CAPL Script

Can Reset Statistics

This reference collection includes Vector documentation reproduced with permission. Snippets may require configuration-specific symbols and are not all standalone programs. Sources and validation limits.

Syntax

void canResetStatistics();

void canResetStatistics(long channel);

Function

Resets CAN channel statistics.

Parameters

channel CAN channel (1-based)

Return Values

—

Reference example from the CANoe 12 help. Check the required configuration, database objects and API availability in your installed version; this is not a recorded compiler or runtime test.

on key 'r'
{
   // reset statistics on CAN 1
   canResetStatistics(1);
}