InstroDMM#
- class InstroDMM(
- name: str | None = None,
- driver: DMMDriverBase | None = None,
- publishers: list[Publisher] | None = None,
- config: DMMConfig | dict | Path | str | None = None,
- autostart: bool = False,
- **kwargs,
Bases:
InstrumentDigital multimeter instrument. Call
set_measurement_functionthenread, or a singleread_<function>.Initialize an InstroDMM.
Provide either
configordriver, not both.- Parameters:
name – Channel-name prefix for published data. Falls back to
config.device.namewhenconfigis given.driver –
Concrete DMM driver; owns its own transport:
dmm = InstroDMM( "main", driver=Agilent34401A("ASRL3::INSTR"), )
publishers – Publishers that receive emitted Measurement/Command data. Combined with any publishers declared in
config.config – A
DMMConfig, a dict, or a path to a JSON config file. Itsmeasurementblock is applied through the public setters onopen().autostart – When True, open the connection and start background polling. Requires
configwith ameasurementblock, since polling cannot start without a measurement function.**kwargs – Default tags applied to every emitted Measurement/Command. Pass
dataset_rid="<rid>"to auto-create a NominalCorePublisher (uses the on-disk ‘default’ Nominal credential).
Attributes
Seconds between background daemon iterations (0 = no wait). |
|
Return an insertion-ordered snapshot of all published channel names. |
Methods
Append |
|
Register a publisher to receive this instrument's Measurement/Command data. |
|
Close the underlying driver and stop the daemon. |
|
Replace all daemon functions with a single |
|
Return the most recent |
|
Return the most recent sample for |
|
Open the underlying driver and apply any configured measurement state. |
|
Fan |
|
Trigger a measurement under the configured function and return it. |
|
Read AC current (amperes), selecting the function first if needed. |
|
Read AC voltage (volts), selecting the function first if needed. |
|
Read DC current (amperes), selecting the function first if needed. |
|
Read DC voltage (volts), selecting the function first if needed. |
|
Read 4-wire resistance (ohms), selecting the function first if needed. |
|
Read 2-wire resistance (ohms), selecting the function first if needed. |
|
Set integration time as a number of power-line cycles. |
|
Set integration time (aperture) in seconds. |
|
Set resolution in digits. |
|
Configure the DMM for |
|
Set manual range; |
|
Start the background daemon thread. |
|
Signal the background daemon to stop and join it. |