Index: HemodialysisDevice.py =================================================================== diff -u -r09680e63c3b35ef6e8c29dee008ea3dcd96c97cc -r42ba1b1326c45164984bb267430e5dcab3fac399 --- HemodialysisDevice.py (.../HemodialysisDevice.py) (revision 09680e63c3b35ef6e8c29dee008ea3dcd96c97cc) +++ HemodialysisDevice.py (.../HemodialysisDevice.py) (revision 42ba1b1326c45164984bb267430e5dcab3fac399) @@ -930,10 +930,17 @@ rxTimeInMins = 30 flowRateMlmin = 100 + sleep(2) resp = hd.DialOut.setUFRx(totalVolumeInMl, rxTimeInMins, flowRateMlmin) - print("Set TotalVolume(mL): {}, TotalTime(mins): {} and flowrate (ml/min): {}".format(totalVolumeInMl, - rxTimeInMins, flowRateMlmin)) + print("Set TotalVolume(mL): {}, TotalTime(mins): {} and flowrate (ml/min): {}, resp: {}".format(totalVolumeInMl, + rxTimeInMins, flowRateMlmin, resp)) + sleep(2) + rxTimeInMins = 60 + resp = hd.DialOut.setUFRx(totalVolumeInMl, rxTimeInMins, flowRateMlmin) + print("Set TotalVolume(mL): {}, TotalTime(mins): {} and flowrate (ml/min): {}, resp: {}".format(totalVolumeInMl, + rxTimeInMins, flowRateMlmin, resp)) + sleep(5) hd.DialOut.setUFState(DialOutStates.RUN) state_run = hd.DialOut.DialOutBroadcast['state'] @@ -948,18 +955,25 @@ hd.DialOut.setUFState(DialOutStates.PAUSE) sleep(2) - print("After pausing: {}".format(hd.DialOut.DialOutBroadcast)) + print("After PAUSE: {}".format(hd.DialOut.DialOutBroadcast)) state_pause = hd.DialOut.DialOutBroadcast['state'] sleep(10) - print("After 10 sec PAUSE:{}".format(hd.DialOut.DialOutBroadcast)) hd.DialOut.setUFState(DialOutStates.STOP) + sleep(2) + print("---> After STOP:{} <---".format(hd.DialOut.DialOutBroadcast)) sleep(3) + hd.DialOut.setUFState(DialOutStates.RUN) + sleep(2) + state_stop = hd.DialOut.DialOutBroadcast['state'] + print("After RUN again: {}".format(hd.DialOut.DialOutBroadcast)) + + sleep(3) hd.DialOut.setUFState(DialOutStates.STOP) sleep(2) state_stop = hd.DialOut.DialOutBroadcast['state'] - print("After Stop: {}".format(hd.DialOut.DialOutBroadcast)) + print("After STOP: {}".format(hd.DialOut.DialOutBroadcast)) sleep(5) hd.DialOut.plotBroadCastSignals()