recipe_name = "Dummy" import sys sys.path.insert(0,"/home/bibi/peerpressure/peerpressure/") import time from peerpressure import PeerPressure pp = PeerPressure("PP01") print "Start of recipe " + recipe_name + " at: ", time.ctime() # Start recipe try: pp.log.record_flag(recipe_name) pp.l_wait(5*60*60) except: print "An error occured in the recipe at: ", time.ctime() finally: pp.log.record_flag("End run") pp.close() print "Finished recipe at: ", time.ctime()
import sys sys.path.insert(0,"/home/bibi/peerpressure/peerpressure/") import time from peerpressure import PeerPressure pp = PeerPressure("PP01") print "Start of recipe " + recipe_name + " at: ", time.ctime() # Start recipe try: pp.log.record_flag(recipe_name) print "pump started sucessfully" # Bring to safe pressure pp.v_out_open() pp.l_wait(60) pp.v_out_close() # Fill 'r up pp.v_in_open() pp.l_wait(30) pp.v_in_close() pp.h.setfrequency(3) pp.h.on() pp.heater_set_power(0) pp.l_wait(5*60) # heat pulses pp.log.record_flag("hp_s") period = 60*60
import sys sys.path.insert(0,"/home/bibi/peerpressure/peerpressure/") import time from peerpressure import PeerPressure pp = PeerPressure("PP01") print "Start of recipe " + recipe_name + " at: ", time.ctime() # Start recipe try: pp.log.record_flag(recipe_name) # Bring to safe pressure pp.v_out_open() pp.l_wait(60) pp.v_out_close() # Fill 'r up pp.v_in_open() pp.l_wait(30) pp.v_in_close() pp.h.on() pp.h.setfrequency(3) pp.heater_set_power(0) pp.l_wait(5*60) # Ramp temperature pp.log.record_flag("rt_s") period = 15*60
import sys sys.path.insert(0,"/home/bibi/peerpressure/peerpressure/") import time from peerpressure import PeerPressure pp = PeerPressure("PP01") print "Start of recipe " + recipe_name + " at: ", time.ctime() # Start recipe try: pp.log.record_flag(recipe_name) # Bring to safe pressure pp.v_out_open() pp.l_wait(60) pp.v_out_close() # Fill 'r up pp.v_in_open() pp.l_wait(30) pp.v_in_close() pp.h.on() pp.h.setfrequency(3) pp.heater_set_power(42.5) pp.l_wait(5*60) # Modulate pressure pp.log.record_flag("pm_dfp_s") period = 60*60