msl.equipment.resources.dmm module
Encapsulate some of the commands to communicate with a Digital Multimeter.
- msl.equipment.resources.dmm.dmm_factory(connection_record, connection_class)[source]
Returns a class that encapsulates some of the commands to communicate with a Digital Multimeter.
To add a DMM to the list of supported DMM’s see the source code of this module to follow the template.
This function is not meant to be called directly. Use the
connect()
method to connect to the equipment.- Parameters:
connection_record (
ConnectionRecord
) – A connection record from a Connections Database.connection_class (
ConnectionMessageBased
orMessageBasedResource
) – A connection subclass that communicates with the equipment through read and write commands.
- Returns:
Connection
– The connection_class that was passed in with additional methods for communicating with the DMM, provided that the model number of the DMM is one of the DMM’s that is supported. Otherwise returns the original, unmodified connection_class object.