示例#1
0
    def initServer(self):
        self.name = socket.gethostname() + ' Multipole Server'

        self.config = dac_8718_config()
        self.minval = self.config.minval
        self.maxval = self.config.maxval
        self.M = self.config.M
        self.U = self.config.U
        self.connect()
示例#2
0
    def connect(self):

        from labrad.wrappers import connectAsync
        from labrad.units import WithUnit as U
        self.config = dac_8718_config()
        self.minval = self.config.minval
        self.maxval = self.config.maxval
        self.U = U
        self.cxn = yield connectAsync(name="dac8718 client")
        self.server = self.cxn.multipole_server
        self.dacserver = self.cxn.dac8718
        self.init_multipoles = yield self.server.get_multipoles()
        self.initialize_GUI()