niDMM_ConfigureSampleTriggerSlope

NI-DMM C/CVI/VB

niDMM_ConfigureSampleTriggerSlope

ViStatus = niDMM_ConfigureSampleTriggerSlope(ViSession Instrument_Handle, ViInt32 Sample_Trigger_Slope)

Purpose

Sets the NIDMM_ATTR_SAMPLE_TRIGGER_SLOPE to either rising edge (positive) or falling edge (negative) polarity.

Parameters

Input
Name Type Description
Instrument_Handle ViSession Identifies a particular instrument session. You obtain the Instrument_Handle parameter from niDMM_init or niDMM_InitWithOptions. The default is None.
Sample_Trigger_Slope ViInt32 Specifies the polarity of the Trigger signal on which the measurement is triggered for values of either NIDMM_VAL_POSITIVE or NIDMM_VAL_NEGATIVE. The driver sets NIDMM_ATTR_SAMPLE_TRIGGER_SLOPE to this value.

Rising Edge 0 NIDMM_VAL_POSITIVE The driver triggers on the rising edge of the trigger signal.
Falling Edge (default) 1 NIDMM_VAL_NEGATIVE The driver triggers on the falling edge of the trigger signal.

Return Value

Name Type Description
Status ViStatus Reports the Status of this operation. To obtain a text description of the status code, call niDMM_error_message. To obtain additional information concerning the error condition, use niDMM_GetError.