Skip to main content
Take one reading from a bench digital multimeter (DMM) net. A DMM net requires box software 0.62.0 or later.

Handle

Methods

Types

DmmFunction

as_str() returns the box name.

DmmOptions

The fields are public to read. Build the value with DmmOptions::new() and the builder methods. A struct literal does not compile, so a field added later does not break your code.

DmmReading

Method Reference

measure(function: DmmFunction, options: &DmmOptions) -> Result<DmmReading>

Configure the meter for function and take one reading.
Returns: a DmmReading. When the meter is over range, value is None and overload is true. For Continuity and Diode, an open input reads the same way. The box checks the request against the meter first. If the meter cannot do the function, range, NPLC value or sensor, the call fails with Error::Box (HTTP 400). The message gives the reason, and the box does not touch the meter. The valid ranges and NPLC values per instrument are in the CLI reference.

identify() -> Result<String>

Return the meter’s *IDN? reply.

errors() -> Result<Vec<String>>

Read and clear the meter’s error queue. The list is empty when the queue is clear.

Examples

Measure a shunt and check for an open circuit

Supported Hardware

Notes

  • One reading can take several seconds on the top capacitance ranges, or when the meter auto-ranges. The crate allows 75 seconds for it.
  • A box older than 0.62.0 has no dmm role. It answers HTTP 501, and the call fails with Error::UnsupportedByBox. A box that serves the role lists dmm in status().capabilities.net_command_roles.