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~=0.8.0
Or easy_install from setuptools:
$ python -m easy_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.configureMeasurementDigits(nidmm.Function.DC_VOLTS, 10, 5.5)
print("Measurement: " + str(session.read()))
Additional examples for NI-DMM are located in src/nidmm/examples/ directory.
API Reference¶
- nidmm.Session
- 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_autorange
- freq_voltage_range
- function
- input_resistance
- instrument_firmware_revision
- instrument_manufacturer
- instrument_model
- instrument_product_id
- io_resource_descriptor
- latency
- lc_calculation_model
- lc_number_meas_to_average
- logical_name
- meas_complete_dest
- meas_dest_slope
- 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
- sample_trigger_slope
- serial_number
- settle_time
- short_cable_comp_reactance
- short_cable_comp_resistance
- shunt_value
- 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_slope
- trigger_source
- waveform_coupling
- waveform_points
- waveform_rate
- Methods
- abort
- configure_ac_bandwidth
- configure_measurement_absolute
- configure_measurement_digits
- configure_multi_point
- configure_open_cable_comp_values
- configure_power_line_frequency
- configure_rtd_custom
- configure_rtd_type
- configure_short_cable_comp_values
- configure_thermistor_custom
- configure_thermocouple
- configure_trigger
- configure_waveform_acquisition
- disable
- fetch
- fetch_multi_point
- fetch_waveform
- fetch_waveform_into
- get_aperture_time_info
- get_auto_range_value
- get_cal_date_and_time
- get_dev_temp
- get_ext_cal_recommended_interval
- get_last_cal_temp
- get_measurement_period
- get_self_cal_supported
- 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
- Properties
- Methods
- Properties
- Enums
- ADCCalibration
- AcquisitionStatus
- ApertureTimeUnits
- AutoZero
- CableCompensationType
- DCNoiseRejection
- Function
- LCCalculationModel
- MeasurementCompleteDest
- MeasurementDestinationSlope
- OperationMode
- RTDType
- SampleTrigSlope
- SampleTrigger
- ThermistorType
- ThermocoupleReferenceJunctionType
- ThermocoupleType
- TransducerType
- TriggerSlope
- TriggerSource
- WaveformCoupling
- Exceptions and Warnings
- Examples