Skip to main content
Open topic with navigation CAPL Functions » VT System » StartTrigger

StartTrigger

Valid for: CANoe DE • CANoe:lite DE Note
The function can only be called on system variable namespaces of appropriate channels of VT System modules.

Method Syntax

long SysVarNamespace.StartTrigger (eVTSTrigger Trigger);

Description

The function starts the specified trigger. It also resets the event counter system variable that is associated to the trigger to 0. To use a trigger it has to be configured using the functions SetTriggerParams and SetTriggerParamsEx. You can find additional information about VT System triggers on the page Triggers.

Parameters

  • Trigger: Specifies which trigger is configured.
    VT1004/VT1104 module: Values see eVTSTrigger

Return Values

  • 0: Successful call
  • -1: Call error
  • -2: The namespace on which the command was called does not exist, is not a valid VT System namespace or does not support this command.

Example

Example: CAPL Test Module
The following example shows how triggers can be used to measure the width of a pulse that is the distance between the rising and falling edge of a pulse.
vtsStartTrigger