def __init__ (self, pipe, spectrometer_buffer) :
		"""
		Initialize the spectrometer and camera
		"""
		BasicDevice.__init__(self, pipe)
		# saving the buffer where the spectrum will be saved
		self.buffer = spectrometer_buffer
Esempio n. 2
0
    def __init__(self, pipe, spectrometer_buffer):
        """
		Initialize the spectrometer and camera
		"""
        BasicDevice.__init__(self, pipe)
        # saving the buffer where the spectrum will be saved
        self.buffer = spectrometer_buffer
Esempio n. 3
0
    def __init__(self, pipe, spectrometer_buffer):
        """
		<pipe> is for communicating.
		<spectrometer_buffer> is a multiprocessing.Array where the spectra will be saved.
		"""
        BasicDevice.__init__(self, pipe)
        # saving the buffer where the spectrum will be saved
        self.buffer = spectrometer_buffer
Esempio n. 4
0
	def __init__ (self,  pipe, histogram_buffer) :
		"""
		<pipe> is for communicating.
		<histogram_buffer> is a multiprocessing.Array where histogram is saved.
		"""
		BasicDevice.__init__(self, pipe)
		# saving the buffer where the spectrum will be saved
		self.buffer = histogram_buffer
Esempio n. 5
0
    def __init__(self, pipe, histogram_buffer):
        """
		<pipe> is for communicating.
		<histogram_buffer> is a multiprocessing.Array where histogram is saved.
		"""
        BasicDevice.__init__(self, pipe)
        # saving the buffer where the spectrum will be saved
        self.buffer = histogram_buffer
    def __init__(self, pipe, camera_img_buffer):
        """
		<pipe> is for communicating.
		<histogram_buffer> is a multiprocessing.Array where histogram is saved.
		"""
        BasicDevice.__init__(self, pipe)
        # saving the buffer where images will be saved
        self.camera_img_buffer = camera_img_buffer
        self.img_buffer = self.ImgBuffer2Numpy(self.camera_img_buffer)
	def __init__ (self,  pipe, camera_img_buffer) :
		"""
		<pipe> is for communicating.
		<histogram_buffer> is a multiprocessing.Array where histogram is saved.
		"""
		BasicDevice.__init__(self, pipe)
		# saving the buffer where images will be saved
		self.camera_img_buffer 	= camera_img_buffer
		self.img_buffer			= self.ImgBuffer2Numpy(self.camera_img_buffer)
Esempio n. 8
0
    def run(self):
        """
		Overloaded function provided by BasicDevice
		"""
        # Start the hardware
        self.InitializeDevice()

        BasicDevice.run(self)

        self.StopDevice()
	def run (self) :
		"""
		Overloaded function provided by BasicDevice.
		"""	
		# Initialize the devices
		self.Initialize()

		BasicDevice.run(self)

		# Closing the device
		self.StopDevice()
Esempio n. 10
0
    def run(self):
        """
		Overloaded function provided by BasicDevice.
		"""
        # Initialize the devices
        self.Initialize()

        BasicDevice.run(self)

        # Closing the device
        self.StopDevice()
	def run (self) :
		"""
		Overloaded function provided by BasicDevice
		"""	
		# Initialize the devices
		self.InitializeShamrock(); self.InitializeCamera()

		BasicDevice.run(self)
		
		# Closing the device
		self.StopDevice()
Esempio n. 12
0
    def run(self):
        """
		Overloaded function provided by BasicDevice
		"""
        # Initialize the devices
        self.InitializeShamrock()
        self.InitializeCamera()

        BasicDevice.run(self)

        # Closing the device
        self.StopDevice()