CAPL Script

Trigger

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

Function

Sends a trigger event to allCANoeLogging or Trigger Blocks. For a Logging Block, the trigger event starts and stops logging, depending on set in theTrigger Configurationdialog of this block. For a trigger block, the trigger event starts and stops the data stream (like a filter) for the whole analysis branch or a single analysis window, depending also ontrigger modeandtrigger conditionsin theTrigger Configurationdialog.

Parameters

—

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 message 100
{
  write("logging start");
  trigger(); // start logging
  setTimer(logging,1000); // for 1000 ms
}

on timer logging
{
  trigger(); // Stop logging
}

triggerEx | stop