photons.equipment.dmm module
Base class for a digital multimeter.
- class photons.equipment.dmm.Auto(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
StrEnumFor settings that can be in an auto mode (e.g., RANGE, ZERO).
- OFF = 'OFF'
- ON = 'ON'
- ONCE = 'ONCE'
- class photons.equipment.dmm.Edge(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
StrEnumThe trigger edge.
- RISING = 'RISING'
- FALLING = 'FALLING'
- BOTH = 'BOTH'
- class photons.equipment.dmm.Function(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
StrEnumThe measurement function.
- DCV = 'DCV'
- DCI = 'DCI'
- class photons.equipment.dmm.Mode(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
StrEnumThe trigger mode.
- IMMEDIATE = 'IMMEDIATE'
- BUS = 'BUS'
- EXTERNAL = 'EXTERNAL'
- class photons.equipment.dmm.Range(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
StrEnumFunction range.
- AUTO = 'AUTO'
- MINIMUM = 'MINIMUM'
- MAXIMUM = 'MAXIMUM'
- DEFAULT = 'DEFAULT'
- class photons.equipment.dmm.Settings(**kwargs)[source]
Bases:
objectThe configuration settings of a DMM.
- class photons.equipment.dmm.DMM(record, **kwargs)[source]
Bases:
BaseEquipmentBase class for a 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).
- class Auto(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
StrEnumFor settings that can be in an auto mode (e.g., RANGE, ZERO).
- OFF = 'OFF'
- ON = 'ON'
- ONCE = 'ONCE'
- class Edge(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
StrEnumThe trigger edge.
- RISING = 'RISING'
- FALLING = 'FALLING'
- BOTH = 'BOTH'
- class Function(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
StrEnumThe measurement function.
- DCV = 'DCV'
- DCI = 'DCI'
- class Mode(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
StrEnumThe trigger mode.
- IMMEDIATE = 'IMMEDIATE'
- BUS = 'BUS'
- EXTERNAL = 'EXTERNAL'
- class Range(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
StrEnumFunction range.
- AUTO = 'AUTO'
- MINIMUM = 'MINIMUM'
- MAXIMUM = 'MAXIMUM'
- DEFAULT = 'DEFAULT'
-
connection:
ConnectionMessageBased
-
fetched:
SignalInstance
-
settings_changed:
SignalInstance
- acquisition_time(*, settings=None, all_triggers=True, line_freq=50.0)[source]
Get the approximate number of seconds it takes to acquire samples.
- check_errors()[source]
Query the error queue.
Raises an exception if there is an error.
- Return type:
- clear()[source]
Clears the event registers in all register groups and the error queue.
- 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.
- Return type:
- Returns:
The result of
settings()after applying the configuration.
- fetch(initiate=False)[source]
Fetch the samples.
- Parameters:
initiate (
bool) – Whether to callinitiate()before fetching the data.- Return type:
- initiate()[source]
Put the digital multimeter in the wait-for-trigger state (arm the trigger).
- Return type: