Skip to content

DigitalMultimeter

Class DigitalMultimeter

class DigitalMultimeter()

[view_source]

Implements an interface for various digital multimeters via USB and serial

__init__

def __init__(connect=None, model="Default")

[view_source]

Arguments:

  • connect: str [required] the connection to the digital multimeter, for example /dev/ttyUSB0
  • model: str [default Default] the digital multimeter model to use for this connection; check models supported for a list of supported. Model names are case-sensitive.

NB: The serial/usb connection to the digital multimeter does not occur until it is first required in a call to get_reading()

get_reading

def get_reading()

[view_source]

Load the digital multimeter and establish a connection if required, then get a reading of the instrument and return.

get_models_supported

def get_models_supported()

[view_source]

Returns a list of the supported digital multimeter models.