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) sys = dg.system_record sys.DG_SYSTEM_RECORD['system_record']['top_level_sn'][1] = ['A', 'D', '-', '1', '4', '0', '0', '7', '0', '0', '0', 'G', '0', '0', '0'] print((sys.DG_SYSTEM_RECORD)) sys.set_system_data() #print(cal.DG_SYSTEM_RECORD['system_record']['top_level_sn'][1])