lab_driver.dmm6500#

Module Contents#

Classes#

API#

class lab_driver.dmm6500.DriverDMM6500[source]#

Initialization

Class for handling the Keithley Digital Multimeter 6500 in Python

SerialDevice: pyvisa.Resource#

None

SerialActive#

False

serial_start_known_target(resource_name: str, do_reset: bool = False) None[source]#

Open the serial connection to device directly

serial_start(do_reset: bool = False, do_beep: bool = True) None[source]#

Open the serial connection to device

Parameters:
  • do_reset – Reset the DAQ device

  • do_beep – Do a beep on DAQ device after init done

Returns:

None

serial_close() None[source]#

Closing the serial connection

get_id() str[source]#

Getting the device ID

do_reset() None[source]#

Reset the device

do_beep() None[source]#

Doing a beep signal

set_measurement_mode(mode: str, polarity: str = '') None[source]#

Set the measurement mode Args: mode: “VOLT”, “CURR”, “RES” or “FRES” polarity: “DC” or “AC” applicable for current and voltage, else “” Returns: None

read_value() float[source]#

Reading value from display

get_voltage()[source]#

Get voltage reading Args: N/A Returns: Voltage in Volts

get_current()[source]#

Get current reading Args: N/A Returns: Current in Ampere

get_2wire_resistance()[source]#

Get 2-wire resistance reading Args: N/A Returns: 2-wire resistance in Ohms

get_4wire_resistance()[source]#

Get 4-wire resistance reading Args: N/A Returns: 4-wire resistance in Ohms

set_4wire_offset_compensation(compensation: bool | str) bool[source]#

Enable or disable offset compensation for 4-wire resistance Args: compensation: True to enable, False to disable, “AUTO” to enable automatically Returns: True on failure; invalid argument

set_2wire_resistance_range(range: int | str) bool[source]#

Set measurement range of 2-wire resistance Args: range: Power of 10 from 10^1 to 10^8 or “AUTO” Returns: True on failure

set_4wire_resistance_range(range: int | str) bool[source]#

Set measurement range of 4-wire resistance Args: range: Power of 10 from 10^0 to 10^8 if offset compensation is off or “AUTO”, else 10^0 to 10^4 if offset compensation is on. Returns: True on failure

set_voltage_range(range: float | str, polarity: str = 'DC') bool[source]#

Set measurement range of voltage Args: range: Available ranges are 0.1, 1, 10, 100 and 1000 Volts in DC mode and 0.1, 1, 10, 100, 750 in AC mode or just “AUTO” polarity: “DC” or “AC”, default is “DC” Returns: True on failure

set_current_range(range: float | str, polarity: str = 'DC') bool[source]#

Set measurement range of current Args: range: Available ranges are 0.00001, 0.0001, 0.001, 0.01, 0.1, 1 and 3 Amps in DC mode and 0.001, 0.01, 0.1, 1 and 3 Amps in AC mode or just “AUTO”. When the rear terminals are used, 10 Amp range is available. polarity: “DC” or “AC”, default is “DC” Returns: True on failure