Exemplo n.º 1
0
 def set_trigger_PV(self,value):
     if value != self.__trigger_PV__:
         from CA import camonitor,camonitor_clear
         camonitor_clear(self.__trigger_PV__,callback=self.trigger_callback)
         self.trigger_times = []
         self.__trigger_PV__ = value
         camonitor(self.__trigger_PV__,callback=self.trigger_callback)
Exemplo n.º 2
0
 def monitor(self,PVs):
     """Update list of monitored process variables"""
     from CA import camonitor,camonitor_clear
     for PV in self.monitored_PVs+[]:
         if not PV in PVs:
             camonitor_clear(PV,self.callback)
             self.monitored_PVs.remove(PV)
     for PV in PVs:
         if not PV in self.monitored_PVs:
             camonitor(PV,callback=self.callback)
             self.monitored_PVs += [PV]
Exemplo n.º 3
0
 def stop_monitoring(self):
     """Undo 'monitor'"""
     from CA import camonitor_clear
     for PV in self.monitored_PVs+[]:
         camonitor_clear(PV,self.callback)
         self.monitored_PVs.remove(PV)
Exemplo n.º 4
0
 def monitor_clear(self,callback=None):
     """Undo 'monitor'."""
     from CA import camonitor_clear
     camonitor_clear(self.prefix+".RBV",callback=callback)
Exemplo n.º 5
0
 def set_monitoring_trigger(self,value):
     from CA import camonitor,camonitor_clear
     if value: camonitor(self.trigger_PV,callback=self.trigger_callback)
     else: camonitor_clear(self.trigger_PV,callback=self.trigger_callback)
     self.__monitoring_trigger__ = value