nidmm module
Installation
As a prerequisite to using the nidmm module, you must install the NI-DMM runtime on your system. Visit ni.com/downloads to download the driver runtime for your devices.
The nimi-python modules (i.e. for NI-DMM) can be installed with pip:
$ python -m pip install nidmm
Usage
The following is a basic example of using the nidmm module to open a session to a DMM and perform a 5.5 digits of resolution voltage measurement in the 10 V range.
import nidmm
with nidmm.Session("Dev1") as session:
session.configure_measurement_digits(nidmm.Function.DC_VOLTS, 10.0, 5.5)
print("Measurement: " + str(session.read()))
API Reference
- Session
- Methods
- abort
- close
- configure_measurement_absolute
- configure_measurement_digits
- configure_multi_point
- configure_rtd_custom
- configure_rtd_type
- configure_thermistor_custom
- configure_thermocouple
- configure_trigger
- configure_waveform_acquisition
- disable
- export_attribute_configuration_buffer
- export_attribute_configuration_file
- fetch
- fetch_multi_point
- fetch_waveform
- fetch_waveform_into
- get_cal_date_and_time
- get_dev_temp
- get_ext_cal_recommended_interval
- get_last_cal_temp
- get_self_cal_supported
- import_attribute_configuration_buffer
- import_attribute_configuration_file
- initiate
- lock
- perform_open_cable_comp
- perform_short_cable_comp
- read
- read_multi_point
- read_status
- read_waveform
- reset
- reset_with_defaults
- self_cal
- self_test
- send_software_trigger
- unlock
- Properties
- ac_max_freq
- ac_min_freq
- adc_calibration
- aperture_time
- aperture_time_units
- auto_range_value
- auto_zero
- buffer_size
- cable_comp_type
- channel_count
- current_source
- dc_bias
- dc_noise_rejection
- driver_setup
- freq_voltage_auto_range
- freq_voltage_range
- function
- input_resistance
- instrument_firmware_revision
- instrument_manufacturer
- instrument_model
- instrument_product_id
- io_resource_descriptor
- lc_calculation_model
- lc_number_meas_to_average
- logical_name
- meas_complete_dest
- number_of_averages
- offset_comp_ohms
- open_cable_comp_conductance
- open_cable_comp_susceptance
- operation_mode
- powerline_freq
- range
- resolution_absolute
- resolution_digits
- sample_count
- sample_interval
- sample_trigger
- serial_number
- settle_time
- short_cable_comp_reactance
- short_cable_comp_resistance
- simulate
- specific_driver_description
- specific_driver_major_version
- specific_driver_minor_version
- specific_driver_revision
- specific_driver_vendor
- supported_instrument_models
- temp_rtd_a
- temp_rtd_b
- temp_rtd_c
- temp_rtd_res
- temp_rtd_type
- temp_tc_fixed_ref_junc
- temp_tc_ref_junc_type
- temp_tc_type
- temp_thermistor_a
- temp_thermistor_b
- temp_thermistor_c
- temp_thermistor_type
- temp_transducer_type
- trigger_count
- trigger_delay
- trigger_source
- waveform_coupling
- waveform_points
- waveform_rate
- Enums
- ADCCalibration
- AcquisitionStatus
- ApertureTimeUnits
- AutoZero
- CableCompensationType
- DCNoiseRejection
- Function
Function
Function.DC_VOLTS
Function.AC_VOLTS
Function.DC_CURRENT
Function.AC_CURRENT
Function.TWO_WIRE_RES
Function.FOUR_WIRE_RES
Function.FREQ
Function.PERIOD
Function.TEMPERATURE
Function.AC_VOLTS_DC_COUPLED
Function.DIODE
Function.WAVEFORM_VOLTAGE
Function.WAVEFORM_CURRENT
Function.CAPACITANCE
Function.INDUCTANCE
- LCCalculationModel
- MeasurementCompleteDest
MeasurementCompleteDest
MeasurementCompleteDest.NONE
MeasurementCompleteDest.EXTERNAL
MeasurementCompleteDest.PXI_TRIG0
MeasurementCompleteDest.PXI_TRIG1
MeasurementCompleteDest.PXI_TRIG2
MeasurementCompleteDest.PXI_TRIG3
MeasurementCompleteDest.PXI_TRIG4
MeasurementCompleteDest.PXI_TRIG5
MeasurementCompleteDest.PXI_TRIG6
MeasurementCompleteDest.PXI_TRIG7
MeasurementCompleteDest.LBR_TRIG0
- OperationMode
- RTDType
- SampleTrigger
SampleTrigger
SampleTrigger.IMMEDIATE
SampleTrigger.EXTERNAL
SampleTrigger.SOFTWARE_TRIG
SampleTrigger.INTERVAL
SampleTrigger.PXI_TRIG0
SampleTrigger.PXI_TRIG1
SampleTrigger.PXI_TRIG2
SampleTrigger.PXI_TRIG3
SampleTrigger.PXI_TRIG4
SampleTrigger.PXI_TRIG5
SampleTrigger.PXI_TRIG6
SampleTrigger.PXI_TRIG7
SampleTrigger.PXI_STAR
SampleTrigger.AUX_TRIG1
SampleTrigger.LBR_TRIG1
- ThermistorType
- ThermocoupleReferenceJunctionType
- ThermocoupleType
- TransducerType
- TriggerSource
TriggerSource
TriggerSource.IMMEDIATE
TriggerSource.EXTERNAL
TriggerSource.SOFTWARE_TRIG
TriggerSource.PXI_TRIG0
TriggerSource.PXI_TRIG1
TriggerSource.PXI_TRIG2
TriggerSource.PXI_TRIG3
TriggerSource.PXI_TRIG4
TriggerSource.PXI_TRIG5
TriggerSource.PXI_TRIG6
TriggerSource.PXI_TRIG7
TriggerSource.PXI_STAR
TriggerSource.AUX_TRIG1
TriggerSource.LBR_TRIG1
- WaveformCoupling
- Exceptions and Warnings
- Examples
- gRPC Support