CAPL Script

TriggerEx

Syntax

void triggerEx(char name[]);

Function

Sends a trigger event to aCANoeLogging or Trigger Block specified byname. 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. If you enter no name, the event will be sent to all Trigger and Logging Blocks that are located behind the CAPL node with the CAPL functiontriggerEx()in the Measurement Setup. If you want the CAPL node to have effect on all Trigger Blocks, the CAPL node has to be placed directly after the online/offline switch.

Parameters

name Name of the Logging or Trigger Block.

Return Values

on message 100{write("logging starts in Logging Block ""Logging""");triggerEx("Logging"); // start loggingsetTimer(logging,1000); // for 1000 ms}on timer logging{triggerEx("Logging"); // Stop logging}

trigger | stop