IviScope_ConfigureRuntTriggerSource

CVI/LabWindows IVI Class Driver

IviScope_ConfigureRuntTriggerSource

IviScopeRuntTrigger Capability Group

C Function Prototype

ViStatus IviScope_ConfigureRuntTriggerSource (ViSession vi, ViConstString source, ViReal64 runtLowThreshold, ViReal64 runtHighThreshold, ViInt32 runtPolarity);

Purpose

This function configures the oscilloscope for runt triggering. A runt trigger occurs when the trigger signal crosses one of the runt thresholds twice without crossing the other runt threshold. You specify the runt thresholds with the runtLowThreshold and runtHighThreshold parameters. You specify the polarity of the runt with the runtPolarity parameter.

This function affects instrument behavior only if the trigger type is IVISCOPE_VAL_RUNT_TRIGGER. Call the IviScope_ConfigureTrigger function to set the trigger type 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.
runtLowThreshold ViReal64 Sets the runt triggering low threshold in volts. The driver uses this value to set the IVISCOPE_ATTR_RUNT_LOW_THRESHOLD attribute.
runtHighThreshold ViReal64 Sets the runt triggering high threshold in volts. The driver uses this value to set the IVISCOPE_ATTR_RUNT_HIGH_THRESHOLD attribute.
runtPolarity ViInt32 Sets the runt polarity. The driver uses this value to set the IVISCOPE_ATTR_RUNT_POLARITY attribute.

Return Values