photons.equipment.dmm_34401a module
Hewlett Packard 34401A digital multimeter.
- class photons.equipment.dmm_34401a.HP34401A(record, **kwargs)[source]
Bases:
DMMHewlett 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).
- check_errors()[source]
Query the error queue.
Raises an exception if there is an error.
- Return type:
- 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:
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.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:
- 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:
- fetch(initiate=False)[source]
Fetch the samples.
- Parameters:
initiate (
bool) – Whether to callinitiate()before fetching the data.- Return type:
- 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: