import time import PyCafe cafe = PyCafe.CyCafe() cafe.monitor("MMAC3:STR:2") pvd = cafe.getPVCache("MMAC3:STR:2") pvd.show() for i in range(0,1000000): pvd = cafe.getPVCache("MMAC3:STR:2") if pvd.value[0] < 0.003: pvd.show() time.sleep(0.25)