> ## 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 configuring a DMM for voltage measurement and triggering a measurement.

"""

from instro.dmm import InstroDMM, MeasurementFunction
from instro.dmm.drivers import Agilent34401A
from instro.lib.publishers import NominalCorePublisher
from instro.lib.transports import SerialConfig, VisaConfig

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


dmm = InstroDMM(
    name="myDMM",
    driver=Agilent34401A(
        VisaConfig(
            visa_resource=VISA_RESOURCE,
            serial_config=SerialConfig(baud_rate=9600),
        )
    ),
    publishers=[NominalCorePublisher(dataset_rid=DATASET_RID)],
)
with dmm:
    dmm.set_measurement_function(function=MeasurementFunction.DC_VOLTAGE)
    response = dmm.read()
    print(response)
```
