Exemple #1
0
    def connect(self):
        """Creates an Asynchronous connection to arduinottl and
        connects incoming signals to relavent functions

        """

        if self.cxn is None:
            self.cxn = connection(name="Camera Switch")
            yield self.cxn.connect()
        self.server = yield self.cxn.get_server('arduinottl')
        self.pmt = yield self.cxn.get_server('normalpmtflow')
        self.reg = yield self.cxn.get_server('registry')
        self.cam = yield self.cxn.get_server('andor_server')
        self.dv = yield self.cxn.get_server('data_vault')
        try:
            self.grapher = yield self.cxn.get_server('grapher')
        except:
            pass

        try:
            yield self.reg.cd(['', 'settings'])
            self.settings = yield self.reg.dir()
            self.settings = self.settings[1]
        except:
            self.settings = []
        self.initializeGUI()
Exemple #2
0
    def connect(self):
        """Creates an Asynchronous connection to pumpserver andLaser_Quantum_
        connects incoming signals to relavent functions
        
        """
        if self.cxn is None:
            self.cxn = connection(name='M2 Pump Client')
            yield self.cxn.connect()
        self.server = yield self.cxn.get_server('M2Pump')

        yield self.server.signal__current_changed(SIGNALID1)
        yield self.server.signal__power_changed(SIGNALID2)
        yield self.server.signal__temp_changed(SIGNALID3)

        yield self.server.addListener(listener=self.updateCurrent,
                                      source=None,
                                      ID=SIGNALID1)
        yield self.server.addListener(listener=self.updatePower,
                                      source=None,
                                      ID=SIGNALID2)
        yield self.server.addListener(listener=self.updateTemp,
                                      source=None,
                                      ID=SIGNALID3)

        self.initializeGUI()
Exemple #3
0
    def connect(self):
        """Creates an Asynchronous connection to arduinottl and
        connects incoming signals to relavent functions

        """

        if self.cxn is None:
            self.cxn = connection(name="Camera Switch")
            yield self.cxn.connect()
        self.server = yield self.cxn.get_server('arduinottl')
        self.pmt = yield self.cxn.get_server('normalpmtflow')
        self.reg = yield self.cxn.get_server('registry')
        self.cam = yield self.cxn.get_server('andor_server')
        self.dv = yield self.cxn.get_server('data_vault')
        try:
            self.grapher = yield self.cxn.get_server('grapher')
        except:
            pass

        try:
            yield self.reg.cd(['', 'settings'])
            self.settings = yield self.reg.dir()
            self.settings = self.settings[1]
        except:
            self.settings = []
        self.initializeGUI()
 def connect(self):
     """Creates an Asynchronous connection to timeharpserver
     """
     if self.cxn is None:
         self.cxn = connection(name='Time Harp Client')
         yield self.cxn.connect()
     self.server = yield self.cxn.get_server('timeharpserver')
     self.initialize_GUI()
Exemple #5
0
    def connect(self):
        """Creates an Asynchronous connection to Pulser and
        connects incoming signals to relavent functions

        """

        if self.cxn is None:
            self.cxn = connection(name="RF Control")
            yield self.cxn.connect()
        self.server = yield self.cxn.get_server('Pulser')
        self.initializeGUI()
Exemple #6
0
    def connect(self):
        """Creates an Asynchronous connection to Pulser and
        connects incoming signals to relavent functions

        """

        if self.cxn is None:
            self.cxn = connection(name="RF Control")
            yield self.cxn.connect()
        self.server = yield self.cxn.get_server('Pulser')
        self.initializeGUI()
 def connect_labrad(self):
     if self.cxn is None:
         from common.lib.clients import connection
         self.cxn = connection.connection()
         yield self.cxn.connect()
     self.context = yield self.cxn.context()
     try:
         yield self.subscribe_data_vault()
     except Exception,e:
         print e
         self.setDisabled(True)
Exemple #8
0
 def setupDDS(self):
     if self.cxn is None:
         self.cxn = connection(name='DDS Client')
         yield self.cxn.connect()
     self.context = yield self.cxn.context()
     try:
         from labrad.types import Error
         self.Error = Error
         yield self.initialize()
     except Exception, e:
         print e
         print 'DDS CONTROL: Pulser not available'
         self.setDisabled(True)
Exemple #9
0
 def setupDDS(self):
     if self.cxn is None:
         self.cxn = connection()
         yield self.cxn.connect()
     self.context = yield self.cxn.context()
     try:
         from labrad.types import Error
         self.Error = Error
         yield self.initialize()
     except Exception, e:
         print e
         print 'DDS CONTROL: Pulser not available'
         self.setDisabled(True)
Exemple #10
0
 def connect(self):
     from labrad import types as T
     self.T = T
     if self.cxn is None:
         self.cxn = connection(name='PMT Client')
         yield self.cxn.connect()
     self.server = yield self.cxn.get_server('normalpmtflow')
     yield self.initializeContent()
     yield self.setupListeners()
     # connect functions
     self.pushButton.toggled.connect(self.on_toggled)
     self.newSet.clicked.connect(self.onNewSet)
     self.doubleSpinBox.valueChanged.connect(self.onNewDuration)
     self.comboBox.currentIndexChanged.connect(self.onNewMode)
Exemple #11
0
 def connect(self):
     from labrad import types as T
     self.T = T
     if self.cxn is None:
         self.cxn = connection(name='PMT Client')
         yield self.cxn.connect()
     self.server = yield self.cxn.get_server('normalpmtflow')
     yield self.initializeContent()
     yield self.setupListeners()
     # connect functions
     self.pushButton.toggled.connect(self.on_toggled)
     self.newSet.clicked.connect(self.onNewSet)
     self.doubleSpinBox.valueChanged.connect(self.onNewDuration)
     self.comboBox.currentIndexChanged.connect(self.onNewMode)
Exemple #12
0
    def connect(self):
        """Creates an Asynchronous connection to arduinottl and
        connects incoming signals to relavent functions
        
        """

        self.kittykat = False
        self.oldstate = False
        self.delay = 500  # in ms this is half the total period (1s delay)
        if self.cxn is None:
            self.cxn = connection(name='kitty kat')
            yield self.cxn.connect()
        self.server = yield self.cxn.get_server('arduinottl')
        self.reg = yield self.cxn.get_server('registry')
        self.initializeGUI()
Exemple #13
0
    def connect(self):
        """Creates an Asynchronous connection to arduinottl and
        connects incoming signals to relavent functions
        
        """

        self.kittykat = False
        self.oldstate = False
        self.delay = 500  # in ms this is half the total period (1s delay)
        if self.cxn is None:
            self.cxn = connection(name="kitty kat")
            yield self.cxn.connect()
        self.server = yield self.cxn.get_server("arduinottl")
        self.reg = yield self.cxn.get_server("registry")
        self.initializeGUI()
Exemple #14
0
    def connect(self):
        """Creates an Asynchronous connection to pumpserver andLaser_Quantum_
        connects incoming signals to relavent functions
        
        """
        if self.cxn is None:
            self.cxn = connection(name='M2 Pump Client')
            yield self.cxn.connect()
        self.server = yield self.cxn.get_server('M2Pump')

        yield self.server.signal__current_changed(SIGNALID1)
        yield self.server.signal__power_changed(SIGNALID2)
        yield self.server.signal__temp_changed(SIGNALID3)

        yield self.server.addListener(listener = self.updateCurrent, source = None, ID = SIGNALID1)
        yield self.server.addListener(listener = self.updatePower, source = None, ID = SIGNALID2)
        yield self.server.addListener(listener = self.updateTemp,  source = None, ID = SIGNALID3)

        self.initializeGUI()
Exemple #15
0
    def connect(self):
        """Creates an Asynchronous connection to arduinottl and
        connects incoming signals to relavent functions

        """

        if self.cxn is None:
            self.cxn = connection(name="Camera Switch")
            yield self.cxn.connect()
        self.server = yield self.cxn.get_server("arduinottl")
        self.reg = yield self.cxn.get_server("registry")

        try:
            yield self.reg.cd(["", "settings"])
            self.settings = yield self.reg.dir()
            self.settings = self.settings[1]
        except:
            self.settings = []
        self.initializeGUI()
Exemple #16
0
    def connect(self):
        """Creates a connection if no connection passed and
        checked for saved switch settings

        """
        if self.cxn is None:
            self.cxn = connection(name="Shutter Client")
            yield self.cxn.connect()
        self.server = yield self.cxn.get_server('arduinottl')
        self.reg = yield self.cxn.get_server('registry')

        try:
            yield self.reg.cd(['', 'settings'])
            self.settings = yield self.reg.dir()
            self.settings = self.settings[1]
        except:
            self.settings = []

        self.chaninfo = shutter_config.info
        self.initializeGUI()
Exemple #17
0
    def connect(self):
        """Creates an Asynchronous connection to arduinottl and
        connects incoming signals to relavent functions

        """

        if self.cxn is None:
            self.cxn = connection(name="Load Control")
            yield self.cxn.connect()
        self.PMT = yield self.cxn.get_server('normalpmtflow')
        self.TTL = yield self.cxn.get_server('arduinottl')
        self.reg = yield self.cxn.get_server('registry')
        try:
            yield self.reg.cd(['', 'settings'])
            self.settings = yield self.reg.dir()
            self.settings = self.settings[1]
        except:
            self.settings = []
        yield self.setup_listeners()
        yield self.initializeGUI()
Exemple #18
0
    def connect(self):
        """Creates an Asynchronous connection to arduinottl and
        connects incoming signals to relavent functions

        """
        from labrad.units import WithUnit as U
        self.U = U
        if self.cxn is None:
            self.cxn = yield connection(name="Load Control")
            yield self.cxn.connect()
        self.PMT = yield self.cxn.get_server('normalpmtflow')
        self.pv = yield self.cxn.get_server('parametervault')
        self.TTL = yield self.cxn.get_server('arduinottl')
        self.oven = yield self.cxn.get_server('ovenserver')
        self.reg = yield self.cxn.get_server('registry')
        try:
            yield self.reg.cd(['', 'settings'])
            self.settings = yield self.reg.dir()
            self.settings = self.settings[1]
        except:
            self.settings = []
        yield self.setup_listeners()
        yield self.initializeGUI()
Exemple #19
0
    def connect(self):
        """Creates an Asynchronous connection to pumpserver and
        connects incoming signals to relavent functions
        """
        if self.cxn is None:
            self.cxn = connection(name='eV Pump Client')
            yield self.cxn.connect()
        self.server = yield self.cxn.get_server('evpump')

        yield self.server.signal__current_changed(SIGNALID1)
        yield self.server.signal__power_changed(SIGNALID2)
        yield self.server.signal__temp_changed(SIGNALID3)
        yield self.server.signal__stat_changed(SIGNALID4)

        yield self.server.addListener(listener=self.update_current,
                                      source=None, ID=SIGNALID1)
        yield self.server.addListener(listener=self.update_power, source=None,
                                      ID=SIGNALID2)
        yield self.server.addListener(listener=self.update_temperature,
                                      source=None, ID=SIGNALID3)
        yield self.server.addListener(listener=self.update_system_status,
                                      source=None, ID=SIGNALID4)

        self.initialize_GUI()
Exemple #20
0
    def connect(self):
        """Creates a connection if no connection passed and
        checked for saved switch settings

        """
        if self.cxn is None:
            self.cxn = connection(name="Switch Client")
            yield self.cxn.connect()
        self.server = yield self.cxn.get_server('arduinottl')
        self.reg = yield self.cxn.get_server('registry')

        yield self.server.signal__on_switch_changed(self.SIGNALID)
        yield self.server.addListener(listener=self.signal_switch_changed,
                                      source=None, ID=self.SIGNALID)

        try:
            yield self.reg.cd(['', 'settings'])
            self.settings = yield self.reg.dir()
            self.settings = self.settings[1]
        except:
            self.settings = []

        self.chaninfo = switch_config.info
        self.initializeGUI()
Exemple #21
0
    def connect(self):
        """Creates an Asynchronous connection to pumpserver and
        connects incoming signals to relavent functions
        """
        if self.cxn is None:
            self.cxn = connection(name='eV Pump Client')
            yield self.cxn.connect()
        self.server = yield self.cxn.get_server('evpump')

        yield self.server.signal__current_changed(SIGNALID1)
        yield self.server.signal__power_changed(SIGNALID2)
        yield self.server.signal__temp_changed(SIGNALID3)
        yield self.server.signal__stat_changed(SIGNALID4)

        yield self.server.addListener(listener=self.update_current,
                                      source=None, ID=SIGNALID1)
        yield self.server.addListener(listener=self.update_power, source=None,
                                      ID=SIGNALID2)
        yield self.server.addListener(listener=self.update_temperature,
                                      source=None, ID=SIGNALID3)
        yield self.server.addListener(listener=self.update_system_status,
                                      source=None, ID=SIGNALID4)

        self.initialize_GUI()
    def connect(self):
        """Creates an Asynchronous connection to timeharpserver
        """
        if self.cxn is None:
            self.cxn = connection(name='Time Harp Client')
            yield self.cxn.connect()
        self.server = yield self.cxn.get_server('timeharpserver')
        self.data_vault = yield self.cxn.get_server('data_vault')
        self.grapher = yield self.cxn.get_server('grapher')
        self.pulser = yield self.cxn.get_server('pulser')
        self.reg = yield self.cxn.get_server('registry')
        yield self.reg.cd(['', 'settings'])

        yield self.server.signal__sync_rate_changed(SIGNALID1)
        yield self.server.signal__count_rate_changed(SIGNALID2)
        yield self.server.signal__warning_changed(SIGNALID3)

        yield self.server.addListener(listener=self.update_sync_count,
                                      source=None, ID=SIGNALID1)
        yield self.server.addListener(listener=self.update_count_rate, source=None,
                                      ID=SIGNALID2)
        yield self.server.addListener(listener=self.update_warnings, source=None,
                                      ID=SIGNALID3)
        self.initialize_GUI()
    def connect(self):
        """Creates an Asynchronous connection to timeharpserver
        """
        if self.cxn is None:
            self.cxn = connection(name='Time Harp Client')
            yield self.cxn.connect()
        self.server = yield self.cxn.get_server('timeharpserver')
        self.data_vault = yield self.cxn.get_server('data_vault')
        self.grapher = yield self.cxn.get_server('grapher')
        self.pulser = yield self.cxn.get_server('pulser')
        self.reg = yield self.cxn.get_server('registry')
        yield self.reg.cd(['', 'settings'])

        yield self.server.signal__sync_rate_changed(SIGNALID1)
        yield self.server.signal__count_rate_changed(SIGNALID2)
        yield self.server.signal__warning_changed(SIGNALID3)

        yield self.server.addListener(listener=self.update_sync_count,
                                      source=None, ID=SIGNALID1)
        yield self.server.addListener(listener=self.update_count_rate, source=None,
                                      ID=SIGNALID2)
        yield self.server.addListener(listener=self.update_warnings, source=None,
                                      ID=SIGNALID3)
        self.initialize_GUI()
Exemple #24
0
 def connect_labrad(self):
     from common.lib.clients.connection import connection
     cxn = connection(name='Qsim GUI Client')
     yield cxn.connect()
     self.create_layout(cxn)
Exemple #25
0
 def connect_labrad(self):
     from common.lib.clients.connection import connection
     cxn = connection(name='Qsim GUI Client')
     yield cxn.connect()
     self.create_layout(cxn)
Exemple #26
0
 def connect(self):
     if self.cxn is None:
         self.cxn = connection("analysis")
         yield self.cxn.connect()
     self.initializeGUI()