Skip to main content
Open topic with navigation CAPL Functions » General » Function Overview » trigger

trigger

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE

Function Syntax

void trigger();

Description

Sends a trigger event to all CANoe DE product Logging or Trigger Blocks. For a Logging Block, the trigger event starts and stops logging, depending on:
  • the trigger mode (single or toggle trigger)
  • the trigger conditions for toggle on and toggle off
set in the Trigger Configuration dialog 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 on trigger mode and trigger conditions in the Trigger Configuration dialog. Note: Please note help of the Trigger Condition: CAPL.

Parameters

Return Values

Example

on message 100 
{
  write("logging start");
  trigger(); // start logging
  setTimer(logging,1000); // for 1000 ms
}

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