pylab_ml.base_instrument
This script contains the base classes for different types of instruments, such as LocalInstrument, PxieInstrument, NetworkInstrument, and GenericInstrument. It also includes a TimeoutBudget class for managing timeouts across instrument transactions. The Instrument class is an abstract base class that provides a basic set of methods and properties to be overridden by actual instrument implementations.
Functions
Chooses the logger based on command line arguments. |
|
|
Global switch to create Dummy instance if error occured in instrument._init or instrument have no connection. |
|
Set up the logger with console and file handlers, and configure the logging level. |
|
Custom logging level for measurements. |
Close the MQTT client connection. |
Classes
|
Interface to any Visa Instrument. |
|
Class for generic instruments that do not fit into the local, PXIe, or network categories. |
|
This is the abstract Instrument class. |
|
Class for local instruments that are connected via interfaces such as GPIB, USB, or serial. |
|
Class for network instruments that are connected via the TCP/IP interface. |
|
Class for PXIe instruments that are connected via the NI-VISA backend. |
|
This TimeoutBudget class is a singleton to provide a shared budget object within each Instrument object. |
Exceptions