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

SetTriggerParams

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.SetTriggerParams (eVTSTrigger Trigger, eVTSTriggerSourceChannel SourceChannel, eVTSTriggerEdgeType EdgeType);

Description

The function configures basic parameters for triggers. Further parameters can be set with the function SetTriggerParamsEx. You can find additional information about VT System triggers on the page Triggers.

Parameters

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.
vtsSetTriggerParams