Ejemplo n.º 1
0
    def create_layout(self, cxn):
        from PMT_CONTROL import pmtWidget
        from common.clients.LINETRIGGER_CONTROL import linetriggerWidget as lineTrig
        self.tabWidget = QtGui.QTabWidget()
        lightControlTab = self.makeLightWidget(reactor)
        voltageControlTab = self.makeVoltageWidget(reactor)
        #control729Widget = self.makecontrol729Widget(reactor, cxn)
        tableopticsTab = self.makeTableOpticsWidget(reactor)

        self.tabWidget.addTab(voltageControlTab,'&Trap Voltages')
        self.tabWidget.addTab(lightControlTab,'&Laser Room')
        #self.tabWidget.addTab(control729Widget, '&729 Control')
        self.tabWidget.addTab(tableopticsTab, '&Table Optics')

 #       scriptControl = self.makeScriptControl(reactor)

        self.createGrapherTab()

        gridLayout = QtGui.QGridLayout()
 #       gridLayout.addWidget(scriptControl, 0, 0, 1, 1)
        gridLayout.addWidget(self.tabWidget, 0, 1, 1, 3)
        rightPanel = QtGui.QGridLayout()
        rightPanel.addWidget(pmtWidget(reactor), 0, 0)
        rightPanel.addWidget(lineTrig(reactor), 1, 0)
        gridLayout.addLayout(rightPanel, 0, 4)
        centralWidget = QtGui.QWidget()
        centralWidget.setLayout(gridLayout)
        self.setCentralWidget(centralWidget)
        self.setWindowTitle('CCTGUI')
Ejemplo n.º 2
0
Archivo: CCTGUI.py Proyecto: trxw/cct
    def create_layout(self, cxn):
        from PMT_CONTROL import pmtWidget
        from common.clients.LINETRIGGER_CONTROL import linetriggerWidget as lineTrig
        from common.clients.script_scanner_gui.script_scanner_gui import script_scanner_gui
        from common.clients.drift_tracker.drift_tracker import drift_tracker
        
        dt = drift_tracker(reactor, cxn)
        
        self.tabWidget = QtGui.QTabWidget()
        lightControlTab = self.makeLightWidget(reactor, cxn)
        voltageControlTab = self.makeVoltageWidget(reactor)
        piezoControlTab = self.makePiezoWidget(reactor)
        script_scanner = script_scanner_gui(reactor, cxn)

        self.tabWidget.addTab(voltageControlTab,'&Trap Voltages')
        self.tabWidget.addTab(lightControlTab,'&Optics')
        self.tabWidget.addTab(script_scanner, '&Script Scanner')
        self.tabWidget.addTab(dt, '&Drift Tracker')
        self.tabWidget.addTab(piezoControlTab, '&Piezo')

        self.createGrapherTab()
        
        gridLayout = QtGui.QGridLayout()
        #gridLayout.addWidget(scriptControl, 0, 0, 1, 1)
        gridLayout.addWidget(self.tabWidget, 0, 1, 1, 3)
        rightPanel = QtGui.QGridLayout()
        rightPanel.addWidget(pmtWidget(reactor), 0, 0) 
        rightPanel.addWidget(lineTrig(reactor), 1, 0)
        gridLayout.addLayout(rightPanel, 0, 4)
        centralWidget = QtGui.QWidget()
        centralWidget.setLayout(gridLayout)
        self.setCentralWidget(centralWidget)
        self.setWindowTitle('CCTGUI')
Ejemplo n.º 3
0
    def makeVoltageWidget(self, reactor):
        from common.clients.DAC_CONTROL_dev import DAC_Control
        from PMT_CONTROL import pmtWidget
        #from PMT_CONTROL2 import pmtWidget as pmtWidget2
        from TRAPDRIVE_CONTROL import TD_CONTROL
        from TICKLE_CONTROL import Tickle_Control
#        from SHUTTER_CONTROL import SHUTTER
        from common.clients.multiplexer.MULTIPLEXER_CONTROL import multiplexerWidget
        from SWEEP_CONTROL import SWEEP_CONTROL
        widget = QtGui.QWidget()
        gridLayout = QtGui.QGridLayout()
        gridLayout.addWidget(DAC_Control(reactor), 0, 0)
        rightPanel = QtGui.QGridLayout()
        rightPanel.addWidget(pmtWidget(reactor), 0, 0)       
        rightPanel.addWidget(SWEEP_CONTROL(reactor), 1, 0)
        bottomPanel = QtGui.QGridLayout()
        bottomPanel.addWidget(Tickle_Control(reactor), 1, 1)
        bottomPanel.addWidget(TD_CONTROL(reactor), 1, 0)
 #       bottomPanel.addWidget(SHUTTER(reactor), 1, 2)
        #gridLayout.addLayout(rightPanel, 0, 1, 2, 1)          
        gridLayout.addLayout(bottomPanel, 1, 0)
        gridLayout.setRowStretch(0, 1)
        #rightPanel.setRowStretch(2, 1)            
        widget.setLayout(gridLayout)
        return widget
Ejemplo n.º 4
0
    def create_layout(self, cxn):
        from PMT_CONTROL import pmtWidget
        from common.clients.LINETRIGGER_CONTROL import linetriggerWidget as lineTrig
        from common.clients.script_scanner_gui.script_scanner_gui import script_scanner_gui
        from common.clients.drift_tracker.drift_tracker import drift_tracker

        dt = drift_tracker(reactor, cxn)

        self.tabWidget = QtGui.QTabWidget()
        lightControlTab = self.makeLightWidget(reactor, cxn)
        voltageControlTab = self.makeVoltageWidget(reactor)
        piezoControlTab = self.makePiezoWidget(reactor)
        script_scanner = script_scanner_gui(reactor, cxn)

        self.tabWidget.addTab(voltageControlTab, '&Trap Voltages')
        self.tabWidget.addTab(lightControlTab, '&Optics')
        self.tabWidget.addTab(script_scanner, '&Script Scanner')
        self.tabWidget.addTab(dt, '&Drift Tracker')
        self.tabWidget.addTab(piezoControlTab, '&Piezo')

        self.createGrapherTab()

        gridLayout = QtGui.QGridLayout()
        #gridLayout.addWidget(scriptControl, 0, 0, 1, 1)
        gridLayout.addWidget(self.tabWidget, 0, 1, 1, 3)
        rightPanel = QtGui.QGridLayout()
        rightPanel.addWidget(pmtWidget(reactor), 0, 0)
        rightPanel.addWidget(lineTrig(reactor), 1, 0)
        gridLayout.addLayout(rightPanel, 0, 4)
        centralWidget = QtGui.QWidget()
        centralWidget.setLayout(gridLayout)
        self.setCentralWidget(centralWidget)
        self.setWindowTitle('CCTGUI')
Ejemplo n.º 5
0
 def makeVoltageWidget(self, reactor):
     from common.clients.DAC_CONTROL import DAC_Control
     from PMT_CONTROL import pmtWidget
     #from PMT_CONTROL2 import pmtWidget as pmtWidget2
     from TRAPDRIVE_CONTROL_RS import TD_CONTROL
     from TICKLE_CONTROL import Tickle_Control
     #        from SHUTTER_CONTROL import SHUTTER
     from common.clients.multiplexer.MULTIPLEXER_CONTROL import multiplexerWidget
     #        from SWEEP_CONTROL import SWEEP_CONTROL
     widget = QtGui.QWidget()
     gridLayout = QtGui.QGridLayout()
     gridLayout.addWidget(DAC_Control(reactor), 0, 0)
     rightPanel = QtGui.QGridLayout()
     rightPanel.addWidget(pmtWidget(reactor), 0, 0)
     #        rightPanel.addWidget(SWEEP_CONTROL(reactor), 1, 0)
     bottomPanel = QtGui.QGridLayout()
     bottomPanel.addWidget(Tickle_Control(reactor), 1, 1)
     bottomPanel.addWidget(TD_CONTROL(reactor), 1, 0)
     #       bottomPanel.addWidget(SHUTTER(reactor), 1, 2)
     #gridLayout.addLayout(rightPanel, 0, 1, 2, 1)
     gridLayout.addLayout(bottomPanel, 1, 0)
     gridLayout.setRowStretch(0, 1)
     #rightPanel.setRowStretch(2, 1)
     widget.setLayout(gridLayout)
     return widget
Ejemplo n.º 6
0
    def create_layout(self, cxn):
        from PMT_CONTROL import pmtWidget
        from common.clients.LINETRIGGER_CONTROL import linetriggerWidget as lineTrig
        from common.clients.readout_histogram import readout_histogram
        self.tabWidget = QtGui.QTabWidget()
        lightControlTab = self.makeLightWidget(reactor)
        voltageControlTab = self.makeVoltageWidget(reactor)
        #control729Widget = self.makecontrol729Widget(reactor, cxn)
        tableopticsTab = self.makeTableOpticsWidget(reactor)
        #        sweepTab = self.makeSweepWidget(reactor)
        #histWidget = self.make_histogram_widget(reactor, cxn)
        #self.tabWidget.addTab(histWidget,'&Histogram')
        self.tabWidget.addTab(voltageControlTab, '&Trap Voltages')
        self.tabWidget.addTab(lightControlTab, '&Laser Room')
        #self.tabWidget.addTab(control729Widget, '&729 Control')
        self.tabWidget.addTab(tableopticsTab, '&Table Optics')
        #        self.tabWidget.addTab(sweepTab, '&Sweep (Marconi)')

        from common.clients.script_scanner_gui.script_scanner_gui import script_scanner_gui
        script_scanner = script_scanner_gui(reactor, cxn)
        script_scanner.show()

        self.createGrapherTab()

        gridLayout = QtGui.QGridLayout()
        gridLayout.addWidget(self.tabWidget, 0, 1, 1, 3)
        rightPanel = QtGui.QGridLayout()
        rightPanel.addWidget(readout_histogram(reactor, cxn), 2, 0)
        rightPanel.addWidget(pmtWidget(reactor), 0, 0)
        rightPanel.addWidget(lineTrig(reactor), 1, 0)
        gridLayout.addLayout(rightPanel, 0, 4)
        centralWidget = QtGui.QWidget()
        centralWidget.setLayout(gridLayout)
        self.setCentralWidget(centralWidget)
        self.setWindowTitle('ResonatorGUI')
Ejemplo n.º 7
0
    def create_layout(self, cxn):
        from PMT_CONTROL import pmtWidget
        from common.clients.LINETRIGGER_CONTROL import linetriggerWidget as lineTrig
        from common.clients.readout_histogram import readout_histogram
        self.tabWidget = QtGui.QTabWidget()
        lightControlTab = self.makeLightWidget(reactor)
        voltageControlTab = self.makeVoltageWidget(reactor)
        #control729Widget = self.makecontrol729Widget(reactor, cxn)
        tableopticsTab = self.makeTableOpticsWidget(reactor)
#        sweepTab = self.makeSweepWidget(reactor)
        #histWidget = self.make_histogram_widget(reactor, cxn)
        #self.tabWidget.addTab(histWidget,'&Histogram')
        self.tabWidget.addTab(voltageControlTab,'&Trap Voltages')
        self.tabWidget.addTab(lightControlTab,'&Laser Room')
        #self.tabWidget.addTab(control729Widget, '&729 Control')
        self.tabWidget.addTab(tableopticsTab, '&Table Optics')
#        self.tabWidget.addTab(sweepTab, '&Sweep (Marconi)')

        from common.clients.script_scanner_gui.script_scanner_gui import script_scanner_gui
        script_scanner = script_scanner_gui(reactor, cxn)
        script_scanner.show()

        self.createGrapherTab()

        gridLayout = QtGui.QGridLayout()
        gridLayout.addWidget(self.tabWidget, 0, 1, 1, 3)
        rightPanel = QtGui.QGridLayout()
        rightPanel.addWidget(readout_histogram(reactor, cxn), 2, 0)
        rightPanel.addWidget(pmtWidget(reactor), 0, 0)
        rightPanel.addWidget(lineTrig(reactor), 1, 0)
        gridLayout.addLayout(rightPanel, 0, 4)
        centralWidget = QtGui.QWidget()
        centralWidget.setLayout(gridLayout)
        self.setCentralWidget(centralWidget)
        self.setWindowTitle('ResonatorGUI')
Ejemplo n.º 8
0
 def makeVoltageWidget(self, reactor):
     widget = QtGui.QWidget()
     from DAC_CONTROL import DAC_CONTROL
     from PMT_CONTROL import pmtWidget
     #from TRAPDRIVE_MODULATION_CONTROL import TRAPDRIVE_MODULATION_CONTROL
     from multiplexer.MULTIPLEXER_CONTROL import multiplexerWidget
     gridLayout = QtGui.QGridLayout()
     gridLayout.addWidget(DAC_CONTROL(reactor),0,0)
     gridLayout.addWidget(pmtWidget(reactor),0,1)
     #gridLayout.addWidget(TRAPDRIVE_MODULATION_CONTROL(reactor),1,0)
     
     widget.setLayout(gridLayout)
     return widget
Ejemplo n.º 9
0
    def create_layout(self, cxn):
        from PMT_CONTROL import pmtWidget
        from common.clients.LINETRIGGER_CONTROL import linetriggerWidget as lineTrig
        from common.clients.script_scanner_gui.script_scanner_gui import script_scanner_gui
        from common.clients.drift_tracker.drift_tracker import drift_tracker
        from common.clients.SWITCH_CONTROL import switchWidget

        dt = drift_tracker(reactor, cxn)

        self.tabWidget = QtGui.QTabWidget()
        lightControlTab = self.makeLightWidget(reactor, cxn)
        voltageControlTab = self.makeVoltageWidget(reactor)
        piezoControlTab = self.makePiezoWidget(reactor)
        script_scanner = script_scanner_gui(reactor, cxn)

        self.tabWidget.addTab(voltageControlTab, "&Trap Voltages")
        self.tabWidget.addTab(lightControlTab, "&Optics")
        self.tabWidget.addTab(script_scanner, "&Script Scanner")
        self.tabWidget.addTab(dt, "&Drift Tracker")
        # self.tabWidget.addTab(piezoControlTab, '&Piezo')
        self.createGrapherTab()

        gridLayout = QtGui.QGridLayout()
        # gridLayout.addWidget(scriptControl, 0, 0, 1, 1)
        gridLayout.addWidget(self.tabWidget, 0, 1, 1, 3)
        rightPanel = QtGui.QGridLayout()

        rightPanel.addWidget(pmtWidget(reactor), 0, 0)
        rightPanel.addWidget(lineTrig(reactor), 1, 0)
        rightPanel.addWidget(switchWidget(reactor, cxn), 2, 0)
        """
        #Adding 729 Beams Position:
        #from common.clients.MOTOR_CONTROL import motorWidget

        rightPanel.addWidget( motorWidget(reactor), 2, 0)
        
        
        """
        gridLayout.addLayout(rightPanel, 0, 4)
        centralWidget = QtGui.QWidget()
        centralWidget.setLayout(gridLayout)
        self.setCentralWidget(centralWidget)
        self.setWindowTitle("CCTGUI")