niDMM_ConfigureACBandwidth

NI-DMM C/CVI/VB

niDMM_ConfigureACBandwidth

ViStatus = niDMM_ConfigureACBandwidth(ViSession Instrument_Handle, ViReal64 AC_Minimum_Frequency_Hz, ViReal64 AC_Maximum_Frequency_Hz)

Purpose

Configures the NIDMM_ATTR_AC_MIN_FREQ and NIDMM_ATTR_AC_MAX_FREQ attributes, which the DMM uses for AC measurements.

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.
AC_Minimum_Frequency_Hz ViReal64 Specifies the minimum expected frequency component of the input signal in hertz. This parameter affects the DMM only when you set the NIDMM_ATTR_FUNCTION attribute to AC measurements. NI-DMM uses this parameter to calculate the proper aperture for the measurement.

The driver sets the NIDMM_ATTR_FUNCTION attribute to this value. The valid range is 1 Hz–300 kHz for the NI 4070/4071/4072, 10 Hz–100 Hz for the NI 4065, and 20 Hz–25 kHz for the NI 4050 and NI 4060.
AC_Maximum_Frequency_Hz ViReal64 Specifies the maximum expected frequency component of the input signal in hertz within the device limits. This parameter is used only for error checking and verifies that the value of this parameter is less than the maximum frequency of the device.

This parameter affects the DMM only when you set the NIDMM_ATTR_FUNCTION attribute to AC measurements. The driver sets the NIDMM_ATTR_AC_MAX_FREQ attribute to this value. The valid range is 1 Hz–300 kHz for the NI 4070/4071/4072, 10 Hz–100 Hz for the NI 4065, and 20 Hz–25 kHz for the NI 4050 and NI 4060.

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.