SetTriggerParams
Valid for: CANoe DE • CANoe:lite DE NoteThe 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
- Trigger: Specifies which trigger is configured: Values see eVTSTrigger
- SourceChannel: Specifies to which channel the configured trigger is connected: Values see eVTSTriggerSourceChannel
- EdgeType: Values see eVTSTriggerEdgeType. If a triggered is configured to level type using SetTriggerParamsEx this parameter sets which level is detected.
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 ModuleThe 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.