Example #1
0
 def init(self, sicl_device, name, shortname=None):
   subsystem.__init__(self, name, shortname)
   vxi_11_connection.__init__(
       self, host=self.my_host, portmap_proxy_host=self.my_portmap_proxy_host,
       portmap_proxy_port=self.my_portmap_proxy_port, device=sicl_device,
       timeout=self.default_timeout, device_name=name, raise_on_err=1)
   device_thread.__init__(
       self, self, main_sleep=self.device_loop_sleep, name=name)
Example #2
0
	def  __init__(self):
		subsystem.__init__(self, name="Magnet Control System", shortname='magnets')
		self.magnet_supplies=[]
		self.magnet_channels=[]
		self.keep_running=1
		self.monitor_thread=self.Thread(target=self.monitor_thread, name="magnet monitor")
		self.monitor_thread.setDaemon(1) #make it daemonic, in case we forget to close it (leave off so it is easy to detect bad closing!)
		self.monitor_thread.start()
		self.current_info=[]
			
		self.alarms={}
Example #3
0
  def __init__(self):
    subsystem.__init__(self, name="Magnet Control System", shortname='magnets')
    self.magnet_supplies = []
    self.magnet_channels = []
    self.keep_running = 1
    self.monitor_thread = self.Thread(
        target=self.monitor_thread, name="magnet monitor")
    # make it daemonic, in case we forget to close it (leave off so it is easy
    # to detect bad closing!)
    self.monitor_thread.setDaemon(1)
    self.monitor_thread.start()
    self.current_info = []

    self.alarms = {}
Example #4
0
 def init(self, sicl_device, name, shortname=None):
     subsystem.__init__(self, name, shortname)
     vxi_11_connection.__init__(
         self,
         host=self.my_host,
         portmap_proxy_host=self.my_portmap_proxy_host,
         portmap_proxy_port=self.my_portmap_proxy_port,
         device=sicl_device,
         timeout=self.default_timeout,
         device_name=name,
         raise_on_err=1)
     device_thread.__init__(self,
                            self,
                            main_sleep=self.device_loop_sleep,
                            name=name)
Example #5
0
	def init(self, name, shortname):
		self.supply_channels=len(self.physical_channels)
		subsystem.__init__(self, name, shortname)
		self.scan=4*self.supply_channels*[None]
		self.next_update_time=time.time()-10.0 #long ago!
Example #6
0
 def init(self, name, shortname):
     self.supply_channels = len(self.physical_channels)
     subsystem.__init__(self, name, shortname)
     self.scan = 4 * self.supply_channels * [None]
     self.next_update_time = time.time() - 10.0  #long ago!