from ctypes import * from collections import OrderedDict from dialin.dg.dialysate_generator import DG from dialin.ui import crc from time import sleep import struct if __name__ == "__main__": # Create an instance of the DG Class dg = DG(log_level='DEBUG') if dg.cmd_log_in_to_dg() == 0: exit(1) sleep(2) cal = dg.calibration """" pres_sensors = OrderedDict() pres_sensors['ppi'] = {'gain': ['