CAPL Script

StartLogging

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 startLogging();

void startLogging(char strLoggingBlockName[]);

void startLogging(char strLoggingBlockName[], long preTriggerTime);

Function

Starts all Logging Blocks immediately bypassing all logging trigger settings.

Starts a Logging Block with namestrLoggingBlockNameimmediately bypassing all logging trigger settings.

Starts a Logging Block with namestrLoggingBlockNamebypassing all logging trigger settings. Function also sets a pre-trigger time to a value of thepreTriggerTime.

Parameters

strLoggingBlockName Name of the Logging Block.

preTriggerTime

Pre-trigger time interval in ms.

Return Values

—

// Separate API usage examples, not a useful start/stop sequence.
startLogging();
stopLogging();
startLogging("Logging 1");
stopLogging("Logging 1");
// Optional pre-trigger / post-trigger intervals in milliseconds.
startLogging("Logging 1", 2000);
stopLogging("Logging 1", 1000);

Related reference: StopLogging