MonitorΒΆ

Description

Background monitoring thread based on the threading library. A Monitor object starts a background thread which reads out the TPG-256A device every second. The data can then be printed to the terminal and/or saved to a PostgreSQL database using the lab_utils.database library. The monitoring thread is intended to be self-sustainable and will try to deal with unexpected errors (usually issues with communication to the device), recover, log them and keep running.

Classes

Monitor

Manages a background thread which logs data from the TPG-256A device.