IviDmm_ConfigureTrigger

CVI/LabWindows IVI Class Driver

IviDmm_ConfigureTrigger

IviDmmBase Capability Group

C Function Prototype

ViStatus IviDmm_ConfigureTrigger (ViSession vi, ViInt32 triggerSource, ViReal64 triggerDelay);

Purpose

Configures the common DMM trigger attributes. These attributes include the trigger source and trigger delay.

Parameters

Name Type Description
vi ViSession The instrument handle that you obtain from the IviDmm_init or IviDmm_InitWithOptions functions. The handle identifies a particular IVI session.
triggerSource ViInt32 Specify the trigger source you want to use. The driver sets the IVIDMM_ATTR_TRIGGER_SOURCE attribute to this value. The DMM waits for the trigger you specify with this parameter after you call either the IviDmm_Read or IviDmm_Initiate function. After it receives the trigger, the DMM waits the length of time you specify with the triggerDelaysec parameter. The DMM then takes a measurement.

Defined Values

triggerDelay ViReal64 Pass the value you want to use for the trigger delay in seconds. The driver sets the IVIDMM_ATTR_TRIGGER_DELAY attribute to this value. The trigger delay specifies the length of time the DMM waits after it receives the trigger and before it takes a measurement. Use positive values to set the trigger delay in seconds. The driver reserves negative values for configuring the DMM to calculate the trigger delay automatically.

Notes  
  1. IVIDMM_VAL_AUTO_DELAY_ON configures the DMM to calculate the trigger delay before each measurement.
  2. IVIDMM_VAL_AUTO_DELAY_OFF stops the DMM from calculating the trigger delay and sets the trigger delay to the last automatically calculated value.

Return Values