niDMM_ConfigureTriggerSlope

NI-DMM C/CVI/VB

niDMM_ConfigureTriggerSlope

ViStatus = niDMM_ConfigureTriggerSlope(ViSession Instrument_Handle, ViInt32 Trigger_Slope)

Purpose

Sets the NIDMM_ATTR_TRIGGER_SLOPE attribute 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.
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 the NIDMM_ATTR_TRIGGER_SLOPE attribute to this value.

NIDMM_VAL_POSITIVE 0 The driver triggers on the rising edge of the trigger signal.
NIDMM_VAL_NEGATIVE (default) 1 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.