CAPL Script

IsAcqui

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.

Note The relevant CAPL block must appear directly before theCANoeFrame Histogramin the evaluation branch. Otherwise a warning is output in theWrite Window.In theCANoeConfiguration dialogtheStatistics reportandhistogram evaluationscheck box must be activated. You open this dialog with theConfigurationshortcut menu command of the Frame Histogram in the Measurement Setup.

Syntax

int isStatisticAcquisitionRunning()

Function

This function is used to test whether an acquisition range has already been started.

Parameters

—

Return Values

The function returns 1 if an evaluation is already running. Otherwise it returns 0.

Reference example from the CANoe 12 help. This is an incomplete context fragment: omitted surrounding code is shown as comments. Do not paste it as a complete program.

// ... surrounding context omitted

// Tests for running acquisition range and stops it.
// If no statistical data acquisition is active a new one is started.
if(isStatisticAcquisitionRunning())
{
// Stops the running acquisition range
stopStatisticAcquisition();
}
else
{
// Starts a new acquisition range
startStatisticAcquisition();
}// ... surrounding context omitted

startStatisticAcquisition | stopStatisticAcquisition