photons.equipment.dmm_34401a module

Hewlett Packard 34401A digital multimeter.

class photons.equipment.dmm_34401a.HP34401A(record, **kwargs)[source]

Bases: DMM

Hewlett Packard 34401A digital multimeter.

Parameters:
  • record (EquipmentRecord) – The equipment record.

  • **kwargs – Keyword arguments. Can be specified as attributes of an XML element in a configuration file (with the tag of the element equal to the alias of record).

abort()[source]

Abort a measurement in progress.

Return type:

None

check_errors()[source]

Query the error queue.

Raises an exception if there is an error.

Return type:

None

configure(*, function=Function.DCV, range=10, nsamples=10, nplc=10, auto_zero=Auto.ON, trigger=Mode.IMMEDIATE, edge=Edge.FALLING, ntriggers=1, delay=None)[source]

Configure the digital multimeter.

Parameters:
  • function (Function | str) – The measurement function.

  • range (Range | str | float) – The range to use for the measurement.

  • nsamples (int) – The number of samples to acquire after a trigger event.

  • nplc (float) – The number of power-line cycles.

  • auto_zero (Auto | bool | int | str) – The auto-zero mode.

  • trigger (Mode | str) – The trigger mode.

  • edge (Edge | str) – The edge to trigger on.

  • ntriggers (int) – The number of triggers that are accepted before returning to the wait-for-trigger state.

  • delay (float) – The number of seconds to wait after a trigger event before acquiring samples. If None, then the auto-delay feature is enabled where the digital multimeter automatically determines the delay based on the function, range and NPLC.

Return type:

Settings

Returns:

The result of settings() after applying the configuration.

disconnect_equipment()[source]

Set the digital multimeter to be in LOCAL mode and then close the connection.

Return type:

None

fetch(initiate=False)[source]

Fetch the samples.

Parameters:

initiate (bool) – Whether to call initiate() before fetching the data.

Return type:

Samples

local_mode()[source]

Set the multimeter to be in LOCAL mode for the RS-232 interface.

All keys on the front panel are fully functional.

Return type:

None

remote_mode()[source]

Set the multimeter to be in REMOTE mode for the RS-232 interface.

All keys on the front panel, except the LOCAL key, are disabled.

Return type:

None

settings()[source]

Returns the configuration settings of the digital multimeter.

Return type:

Settings