nlabapi 1.0.6

Communication with nLab devices
Documentation
1
2
3
4
5
6
7
8
9
10
11
from nlabapi import LabBench
import time

nlab = LabBench.open_first_available()

while True:
    time.sleep(0.5)
    power_status = nlab.power_status()

    print(f"\n{power_status}")
    print(f"State: {power_status.state}, Usage: {power_status.usage:1.3f} Watts")