HP 3478A Multimeter

class pymeasure.instruments.hp.HP3478A(resourceName, **kwargs)

Bases: pymeasure.instruments.instrument.Instrument

Represents the Hewlett Packard 3748A 5 1/2 digit multimeter and provides a high-level interface for interacting with the instrument.

class ERRORS(value)

Bases: enum.IntFlag

Enum element for errror bit decoding

GPIB_trigger()

Initate trigger via low-level GPIB-command (aka GET - group execute trigger)

class SRQ(value)

Bases: enum.IntFlag

Enum element for SRQ mask bit decoding

property SRQ_mask

Return current SRQ mask, this property can be set,

bit assigment for SRQ:

Bit (dec)

Description

1

SRQ when Data ready

4

SRQ when Syntax error

8

SRQ when internal error

16

front panel SQR button

32

SRQ by invalid calibration

property active_connectors

Return selected connectors (“front”/”back”), based on front-panel selector switch

property auto_range_enabled

Property describing the auto-ranging status

Value

Status

True

auto-range function activated

False

manual range selection / auto-range disabled

The range can be set with the range property

property auto_zero_enabled

Return auto-zero status, this property can be set

Value

Status

True

auto-zero active

False

auto-zero disabled

property calibration_enabled

Return calibration enable switch setting, based on front-panel selector switch

Value

Status

True

calbration possible

False

calibration locked

check_errors()

Method to read the error status register

Return error_status

one byte with the error status register content

Rtype error_status

int

classmethod decode_mode(function)

Method to decode current mode

Parameters

function – int indicating the measurement function selected

Return cur_mode

string with the current measurement mode

Rtype cur_mode

str

classmethod decode_range(range_undecoded, function)

Method to decode current range

Parameters
  • range_undecoded – int to be decoded

  • function – int indicating the measurement function selected

Return cur_range

float value repesenting the active measurment range

Rtype cur_range

float

classmethod decode_status(status_bytes, field=None)

Method to handle the decoding of the status bytes into something meaningfull

Parameters
  • status_bytes – list of bytes to be decoded

  • field – name of field to be returned

Return ret_val

int status value

static decode_trigger(status_bytes)

Method to decode trigger mode

Parameters

status_bytes – list of bytes to be decoded

Return trigger_mode

string with the current trigger mode

Rtype trigger_mode

str

display_reset()

Reset the display of the instrument.

property display_text

Displays up to 12 upper-case ASCII characters on the display.

property display_text_no_symbol

Displays up to 12 upper-case ASCII characters on the display and disables all symbols on the display.

property error_status

Checks the error status register

get_status()

Method to read the status bytes from the instrument :return current_status: a byte array representing the instrument status :rtype current_status: bytes

property measure_ACI

Returns the measured value for AC current as a float in A.

property measure_ACV

Returns the measured value for AC Voltage as a float in V.

property measure_DCI

Returns the measured value for DC current as a float in A.

property measure_DCV

Returns the measured value for DC Voltage as a float in V.

property measure_R2W

Returns the measured value for 2-wire resistance as a float in Ohm.

property measure_R4W

Returns the measured value for 4-wire resistance as a float in Ohm.

property measure_Rext

Returns the measured value for extended resistance mode (>30M, 2-wire) resistance as a float in Ohm.

property mode

Return current selected measurement mode, this propery can be set. Allowed values are

Mode

Function

ACI

AC current

ACV

AC voltage

DCI

DC current

DCV

DC voltage

R2W

2-wire resistance

R4W

4-wire resistance

Rext

extended resistance method (requires additional 10 M resistor)

property range

Returns the current measurement range, this property can be set.

Valid values are :

Mode

Range

ACI

0.3, 3, auto

ACV

0.3, 3, 30, 300, auto

DCI

0.3, 3, auto

DCV

0.03, 0.3, 3, 30, 300, auto

R2W

30, 300, 3000, 3E4, 3E5, 3E6, 3E7, auto

R4W

30, 300, 3000, 3E4, 3E5, 3E6, 3E7, auto

Rext

3E7, auto

reset()

Initatiates a reset (like a power-on reset) of the HP3478A

property resolution

Returns current selected resolution, this property can be set.

Possible values are 3,4 or 5 (for 3 1/2, 4 1/2 or 5 1/2 digits of resolution)

shutdown()

provides a way to gracefully close the connection to the HP3478A

property status

Returns an object representing the current status of the unit.

property trigger

Return current selected trigger mode, this property can be set

Possibe values are:

Value

Meaning

auto

automatic trigger (internal)

internal

automatic trigger (internal)

external

external trigger (connector on back or GET)

hold

holds the measurement

fast

fast trigger for AC measurements