Index: tests/test_lc.py =================================================================== diff -u -rc8e3d47e1c55e29eb03eb86207d2c99c2ddcf56d -r5b8814a19b1691f263de795014f30cda2e8d72eb --- tests/test_lc.py (.../test_lc.py) (revision c8e3d47e1c55e29eb03eb86207d2c99c2ddcf56d) +++ tests/test_lc.py (.../test_lc.py) (revision 5b8814a19b1691f263de795014f30cda2e8d72eb) @@ -21,15 +21,11 @@ from time import sleep if __name__ == "__main__": - # create an HD object called hd -# hd = HD(log_level="DEBUG") # create a DG object called dg dg = DG() sleep(2) - # log in to HD and DG as tester -# if hd.cmd_log_in_to_hd() == 0: -# exit(1) + # log in to DG as tester # if dg.cmd_log_in_to_dg() == 0: # exit(1) # sleep(1) @@ -43,21 +39,10 @@ loadCells = "FILTERED:, A1, " + '{:8.2f}'.format(dg.load_cells.load_cell_A1) + \ ", B1, " + '{:8.2f}'.format(dg.load_cells.load_cell_B1) + \ ", A2, " + '{:8.2f}'.format(dg.load_cells.load_cell_A2) + \ - ", B2, " + '{:8.2f}'.format(dg.load_cells.load_cell_B2) + "\n" - rawLC = "1," + '{:8.2f}'.format(dg.load_cells.rawA1[0]) + "\n" + \ - "2," + '{:8.2f}'.format(dg.load_cells.rawA1[1]) + "\n" + \ - "3," + '{:8.2f}'.format(dg.load_cells.rawA1[2]) + "\n" + \ - "4," + '{:8.2f}'.format(dg.load_cells.rawA1[3]) + "\n" + \ - "5," + '{:8.2f}'.format(dg.load_cells.rawA1[4]) + "\n" + \ - "6," + '{:8.2f}'.format(dg.load_cells.rawA1[5]) + "\n" + \ - "7," + '{:8.2f}'.format(dg.load_cells.rawA1[6]) + "\n" + \ - "8," + '{:8.2f}'.format(dg.load_cells.rawA1[7]) + "\n" + \ - "9," + '{:8.2f}'.format(dg.load_cells.rawA1[8]) + "\n" + \ - "10," + '{:8.2f}'.format(dg.load_cells.rawA1[9]) + "\n" + ", B2, " + '{:8.2f}'.format(dg.load_cells.load_cell_B2) # log data f.write(loadCells) - f.write(rawLC) f.write("\n") # print to console