コード例 #1
0
    def __init__(self, settings_file_name, parameters, parent = None):
        # setup the AOTF communication thread
        self.aotf_queue = commandQueues.QCT64BitAOTFThread()
        self.aotf_queue.start(QtCore.QThread.NormalPriority)
        self.aotf_queue.analogModulationOn()

        # setup the Cube communication thread
        self.cube_queue = commandQueues.QSerialLaserComm(cube405.Cube405(port = "COM9"))
        self.cube_queue.start(QtCore.QThread.NormalPriority)

        illuminationControl.QIlluminationControlWidget.__init__(self, settings_file_name, parameters, parent)
コード例 #2
0
    def __init__(self, parent=None):
        QtCore.QThread.__init__(self, parent)
        self.buffer = []
        self.buffer_mutex = QtCore.QMutex()
        self.cube_mutex = QtCore.QMutex()
        self.running = 1

        global have_cube
        if have_cube:
            self.cube = cube405.Cube405()
            if not (self.cube.getStatus()):
                self.cube.shutDown()
                self.cube = 0
        else:
            self.cube = 0
コード例 #3
0
    def __init__(self, settings_file_name, parameters, parent = None):
        # setup the AOTF communication thread
        self.aotf_queue = commandQueues.QCT64BitAOTFThread()
        self.aotf_queue.start(QtCore.QThread.NormalPriority)
        self.aotf_queue.analogModulationOn()

        # setup the Cube communication thread
        self.cube_queue = commandQueues.QSerialLaserComm(cube405.Cube405(port = "COM13"))
        self.cube_queue.start(QtCore.QThread.NormalPriority)

        # Setup the filter wheel communication thread.
        # There is only one filter wheel, which is in 750 laser path.
        self.fw_queue = commandQueues.QSerialFilterWheelComm(FW102C.FW102C(port = "COM14"))
        self.fw_queue.start(QtCore.QThread.NormalPriority)

        # setup for NI communication with mechanical shutters (digital, unsynced)
        self.shutter_queue = commandQueues.QNiDigitalComm()

        illuminationControl.QIlluminationControlWidget.__init__(self, settings_file_name, parameters, parent)
コード例 #4
0
    def __init__(self, settings_file_name, parameters, parent=None):
        # setup the AOTF communication thread
        self.aotf_queue = commandQueues.QCTAOTFThread()
        self.aotf_queue.start(QtCore.QThread.NormalPriority)
        self.aotf_queue.analogModulationOn()

        # setup the Cube communication threads
        self.cube405_queue = commandQueues.QSerialLaserComm(
            cube405.Cube405("COM4"))
        self.cube405_queue.start(QtCore.QThread.NormalPriority)
        self.cube445_queue = commandQueues.QSerialLaserComm(
            cube445.Cube445("COM3"))
        self.cube445_queue.start(QtCore.QThread.NormalPriority)

        # setup for NI communication (analog, camera synced)
        self.ni_queue = commandQueues.QNiAnalogComm(5.0)

        # setup for NI communication with mechanical backup shutters (digital, unsynced)
        self.shutter_queue = commandQueues.QNiDigitalComm()

        illuminationControl.QIlluminationControlWidget.__init__(
            self, settings_file_name, parameters, parent)