IviScope_ConfigureEdgeTriggerSource

CVI/LabWindows IVI Class Driver

IviScope_ConfigureEdgeTriggerSource

IviScopeBase Capability Group

C Function Prototype

ViStatus IviScope_ConfigureEdgeTriggerSource (ViSession vi, ViConstString source, ViReal64 level, ViInt32 slope);

Purpose

This function sets the edge triggering attributes.

You specify the source the oscilloscope monitors for the trigger with the triggerSource parameter. An edge trigger occurs when the trigger signal passes through the voltage threshold that you specify with the triggerLevel parameter and has the slope that you specify with the slope parameter.

This function affects instrument behavior only if the triggerType is IVISCOPE_VAL_EDGE_TRIGGER. Call the IviScope_ConfigureTrigger function to set the triggerType before calling this function.

If the trigger source is one of the analog input channels, the vertical range, vertical offset, vertical coupling, probe attenuation, and maximum input frequency must be configured before calling this function.

Parameters

Name Type Description
vi ViSession The instrument handle that you obtain from the IviScope_init or IviScope_InitWithOptions functions. The handle identifies a particular IVI session.
triggerSource ViConstString Specifies the trigger source. The driver uses this value to set the IVISCOPE_ATTR_TRIGGER_SOURCE attribute.
level ViReal64 Specifies the trigger level. The driver uses this value to set the IVISCOPE_ATTR_TRIGGER_LEVEL attribute.
slope ViInt32 Specifies the trigger slope. The driver uses this value to set the IVISCOPE_ATTR_TRIGGER_SLOPE attribute.

Return Values