fixate.drivers.dmm package

Digital multimeter driver

Use dmm.open() to connect to a digital multimeter. Functions are dictated by the abstract superclass DMM in helper.py

dmm.measure(*mode, **mode_params)
dmm.reset()
fixate.drivers.dmm.open() DMM

Connect to a digital multimeter.

Searches for a configured instrument and returns the first one found.

Returns:

open connection to the DMM

Return type:

DMM

Submodules

fixate.drivers.dmm.fluke_8846a module

class fixate.drivers.dmm.fluke_8846a.Fluke8846A(instrument, *args, **kwargs)

Bases: DMM

INSTR_TYPE = 'VISA'
REGEX_ID = 'FLUKE,8846A'
capacitance(_range=None)
continuity()

Writes configuration string for continuity to the DMM param _range: value set for the range

current_ac(_range=None)
current_dc(_range=None)

Sets the DMM in DC current measurement mode and puts it in the range given by the argument _range. Signals expected to be measured must be < _range.

diode(low_current=True, high_voltage=False)

Writes configuration string for diode to the DMM param _range: value set for the range

frequency(_range=None, _volt_range=None)
fresistance(_range=None)

Sets the DMM in 4-wire resistance measurement mode and puts it in the range given by the argument _range. Signals expected to be measured must be < _range.

get_identity() str

Meter returns the identification code of the meter as four fields separated by commas. These fields are:

manufacturer (“FLUKE”); model (“45”); seven-digit serial number; version of main software and version of display software.

Returns:

(example: FLUKE, 45, 9080025, 2.0, D2.0)

get_nplc()
local()

Sets instrument to local mode Use remote() to restore remote operation.

measurement(delay=None)

Sets up DMM triggering, creates list of measurements from the read buffer

delay: If not set, will wait for self.measurement_delay seconds before triggering a measurement. If set, will wait for delay seconds before triggering a measurement. returns: a single value as a float

measurements()
min_avg_max(samples=1, sample_time=1)

automatically samples the DMM for a given number of samples and returns the min, max, and average values :param samples: number of samples to take :param sample_time: time to wait for the DMM to take the samples return: min, avg, max values as floats in a dataclass

property mode
period(_range=None, _volt_range=None)
remote()

Sets instrument to remote mode

reset()

Checks for errors and then returns DMM to power up state

resistance(_range=None)

Sets the DMM in 2-wire resistance measurement mode and puts it in the range given by the argument _range. Signals expected to be measured must be < _range.

property samples
set_manual_trigger(samples=1)

Setup instrument for manual triggering. :param samples: Number of samples to take per trigger event

set_nplc(nplc=None, reset=False)
trigger()

Manually trigger a measurement and store in instrument buffer.

voltage_ac(_range=None)

Sets the DMM in AC voltage measurement mode and puts it in the range given by the argument _range. Signals expected to be measured must be < _range.

Parameters:

_range – The range to set the DMM to.

voltage_dc(_range=None, auto_impedance=False)

Sets the DMM in DC voltage measurement mode and puts it in the range given by the argument _range. Signals expected to be measured must be < _range.

fixate.drivers.dmm.helper module

class fixate.drivers.dmm.helper.DMM

Bases: object

class MeasurementStats(min: float, max: float, avg: float)

Bases: object

avg: float
max: float
min: float
REGEX_ID = 'DMM'
capacitance(_range=None)
continuity()
current_ac(_range)
current_dc(_range)

Sets the DMM in DC current measurement mode and puts it in the range given by the argument _range. Signals expected to be measured must be < _range.

diode(low_current=True, high_voltage=False)
frequency(_range=None)
fresistance(_range=None)

Sets the DMM in 4-wire resistance measurement mode and puts it in the range given by the argument _range. Signals expected to be measured must be < _range.

get_identity()
is_connected = False
local()

Sets instrument to local mode Use remote() to restore remote operation.

measurement(delay=None)

Trigger and return measurement from the instrument buffer.

Parameters:

delay (bool) – If True, waits for self.measurement_delay seconds then triggers a measurement.

Returns:

measured value

Return type:

float

nplc(nplc=None)
period(_range=None)
remote()

Sets instrument to remote mode

reset()
resistance(_range=None)

Sets the DMM in 2-wire resistance measurement mode and puts it in the range given by the argument _range. Signals expected to be measured must be < _range.

set_manual_trigger(samples=1)

Setup instrument for manual triggering. :param samples: Number of samples to take per trigger event

trigger()

Manually trigger measurement and store in instrument buffer.

voltage_ac(_range=None)

Sets the DMM in AC voltage measurement mode and puts it in the range given by the argument _range. Signals expected to be measured must be < _range.

Parameters:

_range – The range to set the DMM to.

voltage_dc(_range=None, auto_impedance=False)

Sets the DMM in DC voltage measurement mode and puts it in the range given by the argument _range. Signals expected to be measured must be < _range.

fixate.drivers.dmm.keithley_6500 module

class fixate.drivers.dmm.keithley_6500.Keithley6500(instrument, *args, **kwargs)

Bases: DMM

INSTR_TYPE = 'VISA'
REGEX_ID = 'KEITHLEY INSTRUMENTS,MODEL DMM6500'
capacitance(_range=None)
continuity()

Writes configuration string for continuity to the DMM param _range: value set for the range param _resolution: value set for the resolution

current_ac(_range=None)
current_dc(_range=None)

Sets the DMM in DC current measurement mode and puts it in the range given by the argument _range. Signals expected to be measured must be < _range.

diode(low_current=True, high_voltage=False)
property display
frequency(_range=None, _volt_range=None)
Parameters:

_volt_range – The voltage range to perform the measurement.

range for DMM is constant for frequency measurements

fresistance(_range=None)

Sets the DMM in 4-wire resistance measurement mode and puts it in the range given by the argument _range. Signals expected to be measured must be < _range.

get_identity() str

Meter returns the identification code of the meter as four fields separated by commas. These fields are:

manufacturer (“FLUKE”); model (“45”); seven-digit serial number; version of main software and version of display software.

Returns:

(example: FLUKE, 45, 9080025, 2.0, D2.0)

get_nplc()
local()

Sets instrument to local mode Use remote() to restore remote operation.

measurement(delay=None)

Sets up DMM triggering, creates list of measurements from the read buffer

delay: If not set, will wait for self.measurement_delay seconds before triggering a measurement. If set, will wait for delay seconds before triggering a measurement. returns: a single value as a float

measurements()
min_avg_max(samples=1, sample_time=1)

automatically samples the DMM for a given number of samples and returns the min, max, and average values :param samples: number of samples to take :param sample_time: time to wait for the DMM to take the samples return: min, avg, max values as floats in a dataclass

property mode
period(_range=None, _volt_range=None)
Parameters:

_range – The voltage range to perform the measurement.

remote()

Sets instrument to remote mode

reset()

Checks for errors and then returns DMM to power up state

resistance(_range=None)

Sets the DMM in 2-wire resistance measurement mode and puts it in the range given by the argument _range. Signals expected to be measured must be < _range.

property samples
set_manual_trigger(samples=1)

Setup instrument for manual triggering :param samples: Number of samples to take per trigger

Use trigger_measurement() to trigger a measurement. Use measurements() to retrieve measurements.

set_nplc(nplc=None, reset=False)
trigger()

Manually trigger a measurement and store in instrument buffer.

voltage_ac(_range=None)

Sets the DMM in AC voltage measurement mode and puts it in the range given by the argument _range. Signals expected to be measured must be < _range.

Parameters:

_range – The range to set the DMM to.

voltage_dc(_range=None, auto_impedance=False)

Sets the DMM in DC voltage measurement mode and puts it in the range given by the argument _range. Signals expected to be measured must be < _range.