########################################################################### # # Copyright (c) 2019-2020 Diality Inc. - All Rights Reserved. # # THIS CODE MAY NOT BE COPIED OR REPRODUCED IN ANY FORM, IN PART OR IN # WHOLE, WITHOUT THE EXPLICIT PERMISSION OF THE COPYRIGHT OWNER. # # @file test_syringe.py # # @author (last) Peter Lucia # @date (last) 02-Oct-2020 # @author (original) Peter Lucia # @date (original) 14-Jul-2020 # ############################################################################ import sys sys.path.append("..") from dialin.hd.hemodialysis_device import HD #from dialin.dg.dialysate_generator import DG from time import sleep if __name__ == "__main__": # create an HD object called hd hd = HD() # 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) # if dg.cmd_log_in_to_dg() == 0: # exit(1) sleep(1) # hd.syringe_pump.cmd_syringe_pump_operation(0,0.0,0.0) # stop # hd.syringe_pump.cmd_syringe_pump_operation(1,0.0,0.0) # retract # sleep(10) # hd.syringe_pump.cmd_syringe_pump_operation(2,0.0,0.0) # seek/prime # sleep(5) hd.syringe_pump.cmd_syringe_pump_operation(3,0.0,2.0) # bolus # hd.syringe_pump.cmd_syringe_pump_operation(4,1.0,0.0) # continuous