import numpy as np import epics from epics import caget, caput, cainfo threshold = 1e-6 monitor_ch = 'SATES21-VM-VT4010:PRESSURE' current_ch = caget(monitor_ch) while current_ch > 1e-6: current_ch = caget(monitor_ch) print('value checked and it is : ' , current_ch)