> ## Documentation Index
> Fetch the complete documentation index at: https://instro.nominal.io/llms.txt
> Use this file to discover all available pages before exploring further.

# A basic DMM reading

```python dmm_basic.py theme={null}
"""Example: A basic DMM reading.

Demonstrates a single-call measurement published to a Nominal dataset. Swapping
in another vendor's driver leaves the rest of the script unchanged.

"""

from instro.dmm import InstroDMM
from instro.dmm.drivers import Agilent34401A  # or Keysight34461A, Keithley2400, SimulatedDMM
from instro.lib.publishers import NominalCorePublisher

VISA_RESOURCE = "ASRL3::INSTR"
DATASET_RID = "<dataset_rid>"  # Replace with your dataset RID.

dmm = InstroDMM(
    name="myDMM",
    driver=Agilent34401A(VISA_RESOURCE),
    publishers=[NominalCorePublisher(dataset_rid=DATASET_RID)],
)
with dmm:
    print(dmm.read_dc_voltage().latest)
```
