Fluke8808A#

class Fluke8808A(visa_resource: str | VisaConfig)[source]#

Bases: DMMDriverBase

Fluke 8808A on its RS-232 port, primary display only. Resolution is set via set_digits.

Configure the driver; the port is not opened until open().

The front panel is locked (RWLS) while the driver holds the meter, so the function it tracks can’t be changed underneath it.

Parameters:

visa_resource (str | VisaConfig)

ASRL resource string, e.g. "ASRL3::INSTR" or "ASRL/dev/ttyUSB0::INSTR", or a VisaConfig whose serial_config matches the meter’s front-panel RS-232 setup. The defaults (9600 baud, 8N1, no flow control) match the factory setup.

Example

>>> from instro.dmm import InstroDMM
>>> from instro.unstable.dmm.drivers import Fluke8808A
>>> dmm = InstroDMM(name="fluke", driver=Fluke8808A("ASRL/dev/ttyUSB0::INSTR"))
>>> dmm.open()
>>> dmm.read_dc_voltage()

Methods

close

Return the meter to local control and close the port.

measure_ac_current

Trigger an AC-current measurement and return the value (amperes RMS, vendor-dependent).

measure_ac_voltage

Trigger an AC-voltage measurement and return the value (volts RMS, vendor-dependent).

measure_dc_current

Trigger a DC-current measurement and return the value (amperes).

measure_dc_voltage

Trigger a DC-voltage measurement and return the value (volts).

measure_four_wire_resistance

Trigger a 4-wire-resistance measurement and return the value (ohms).

measure_resistance

Trigger a 2-wire-resistance measurement and return the value (ohms).

open

Open the port and reset the meter into remote mode with the front panel locked.

set_ac_current_nplc

Set AC-current integration time to nplc power-line cycles.

set_ac_current_range

Set manual AC-current range to value amperes; None selects auto-range.

set_ac_voltage_nplc

Set AC-voltage integration time to nplc power-line cycles.

set_ac_voltage_range

Set manual AC-voltage range to value volts; None selects auto-range.

set_aperture_seconds

Set integration time directly in seconds.

set_dc_current_nplc

Set DC-current integration time to nplc power-line cycles.

set_dc_current_range

Set manual DC-current range to value amperes; None selects auto-range.

set_dc_voltage_nplc

Set DC-voltage integration time to nplc power-line cycles.

set_dc_voltage_range

Set manual DC-voltage range to value volts; None selects auto-range.

set_digits

Set resolution: 5 selects the slow rate (2.5 rdg/s), 4 the fast rate (100 rdg/s).

set_four_wire_resistance_nplc

Set 4-wire-resistance integration time to nplc power-line cycles.

set_four_wire_resistance_range

Set manual 4-wire-resistance range to value ohms; None selects auto-range.

set_measurement_function

Select function on the primary display.

set_two_wire_resistance_nplc

Set 2-wire-resistance integration time to nplc power-line cycles.

set_two_wire_resistance_range

Set manual 2-wire-resistance range to value ohms; None selects auto-range.

open() → None[source]#

Open the port and reset the meter into remote mode with the front panel locked.

close() → None[source]#

Return the meter to local control and close the port.

set_measurement_function(
function: MeasurementFunction,
) → None[source]#

Select function on the primary display.

set_digits(n: int) → None[source]#

Set resolution: 5 selects the slow rate (2.5 rdg/s), 4 the fast rate (100 rdg/s).

The medium rate has the same 4.5-digit resolution as fast, so it is not reachable here.

set_dc_voltage_range(value: float | None) → None[source]#

Set manual DC-voltage range to value volts; None selects auto-range.

set_ac_voltage_range(value: float | None) → None[source]#

Set manual AC-voltage range to value volts; None selects auto-range.

set_dc_current_range(value: float | None) → None[source]#

Set manual DC-current range to value amperes; None selects auto-range.

set_ac_current_range(value: float | None) → None[source]#

Set manual AC-current range to value amperes; None selects auto-range.

set_two_wire_resistance_range(value: float | None) → None[source]#

Set manual 2-wire-resistance range to value ohms; None selects auto-range.

set_four_wire_resistance_range(value: float | None) → None[source]#

Set manual 4-wire-resistance range to value ohms; None selects auto-range.

measure_dc_voltage() → float[source]#

Trigger a DC-voltage measurement and return the value (volts).

measure_ac_voltage() → float[source]#

Trigger an AC-voltage measurement and return the value (volts RMS, vendor-dependent).

measure_dc_current() → float[source]#

Trigger a DC-current measurement and return the value (amperes).

measure_ac_current() → float[source]#

Trigger an AC-current measurement and return the value (amperes RMS, vendor-dependent).

measure_resistance() → float[source]#

Trigger a 2-wire-resistance measurement and return the value (ohms).

measure_four_wire_resistance() → float[source]#

Trigger a 4-wire-resistance measurement and return the value (ohms).

Default raises NotImplementedError; override on drivers whose instrument has dedicated sense leads (e.g. Agilent 34401A).

set_ac_current_nplc(nplc: float) → None#

Set AC-current integration time to nplc power-line cycles.

set_ac_voltage_nplc(nplc: float) → None#

Set AC-voltage integration time to nplc power-line cycles.

set_aperture_seconds(seconds: float) → None#

Set integration time directly in seconds.

Default raises NotImplementedError. Mutually exclusive with set_aperture_nplc on a given driver — vendors typically expose one or the other.

set_dc_current_nplc(nplc: float) → None#

Set DC-current integration time to nplc power-line cycles.

set_dc_voltage_nplc(nplc: float) → None#

Set DC-voltage integration time to nplc power-line cycles.

set_four_wire_resistance_nplc(nplc: float) → None#

Set 4-wire-resistance integration time to nplc power-line cycles.

set_two_wire_resistance_nplc(nplc: float) → None#

Set 2-wire-resistance integration time to nplc power-line cycles.