import time from .allen_bradley_connect import AllenBradleyCPU cpu = AllenBradleyCPU() cpu.start() while True: time.sleep(.1) vals = [0] * 16 for meas in cpu.read(): vals[meas.channel] = meas.current print(vals)