Index: tests/dg_tests.py =================================================================== diff -u -r8407f6a1eb2289ed5764423aa9f27615d313d6af -r053580d8dbe39bf313d61b002d8d41a189d95c39 --- tests/dg_tests.py (.../dg_tests.py) (revision 8407f6a1eb2289ed5764423aa9f27615d313d6af) +++ tests/dg_tests.py (.../dg_tests.py) (revision 053580d8dbe39bf313d61b002d8d41a189d95c39) @@ -353,7 +353,6 @@ def collect_treatment_data(): f = open("/home/fw/projects/dialin/tests/treatment_run.log", "w") - """ dg.conductivity_sensors.cmd_conductivity_sensor_override(ConductivitySensorsEnum.CD2.value, 6900.00) sleep(1) @@ -362,10 +361,10 @@ dg.dialysate_fill.cmd_used_bicarb_volume_override(3700.0) sleep(1) + """ counter = 1 start = False - """ try: while True: @@ -387,8 +386,15 @@ idle_bad_fill = get_dg_idle_bad_fill_info() var = str(datetime.now()) + ', ' + hd_run + dg_run + hd_rsrvrs + dg_rsrvrs + load_cell + drain + ro + \ - temp + heaters + conc_pumps + dg_fans + valves + blood_leak + hd_pumps + fill_info + '\r' - """ + temp + heaters + conc_pumps + dg_fans + valves + blood_leak + hd_pumps + fill_info + idle_bad_fill + '\r' + + if hd.alarms.get_alarm_state(97) and start is False: + dg.conductivity_sensors.cmd_conductivity_sensor_override(ConductivitySensorsEnum.CD2.value, 13700.00) + sleep(0.2) + dg.conductivity_sensors.cmd_conductivity_sensor_override(ConductivitySensorsEnum.CD1.value, 11600.00) + start = True + + """ var = str(datetime.now()) + ', ' + hd_run + dg_run + load_cell + drain + ro + conc_pumps + valves + \ idle_bad_fill + fill_info + '\r' @@ -628,4 +634,7 @@ # test_hd_fans_alarms() # test_dg_fans_alarms() + #while True: + # print(get_hd_fans_info(), get_hd_occlusion_pressures_info()) + # sleep(1)