def recalibrate(boardname, carrierMin, carrierMax, zeroCarrierStep=0.025, sidebandCarrierStep=0.05, sidebandMax=0.35, sidebandStep=0.05, corrector=None): startReactor() block(recalibrateAsync, boardname, carrierMin, carrierMax, zeroCarrierStep, sidebandCarrierStep, sidebandMax, sidebandStep, corrector)
def DACcorrector(fpganame, channel, cxn=None, lowpass=gaussfilter, bandwidth=0.13): if cxn != None: print 'Warning: cxn argument is obsolete and is not being used.' print 'It is only there for backwards compatibility' startReactor() return block(DACcorrectorAsync, fpganame, channel, None, lowpass, bandwidth)
def connect(self, host, port=C.MANAGER_PORT, timeout=C.TIMEOUT, password=None): thread.startReactor() self._cxn = block(getConnection, host, port, self.name, password) self._mgr = ILabradManager(self._cxn) self.ID = self._cxn.ID self.host = host self.port = port self.connected = True
def IQcorrector(fpganame, cxn=None, zerocor=True, pulsecor=True, iqcor=True, lowpass=cosinefilter, bandwidth=0.4): if cxn != None: print 'Warning: cxn argument is obsolete and is not being used.' print 'It is only there for backwards compatibility.' startReactor() corrector = block(IQcorrectorAsync, fpganame, None, zerocor, pulsecor, iqcor, lowpass, bandwidth) corrector.recalibrationRoutine = recalibrate return corrector
def _refresh(self): if not self._refreshed: info = block(self._mgr.getSettingInfo, self._server.ID, self.ID) self.__doc__, self._accepts, self._returns, self._notes = info self._refreshed = True
def _sendMessage(self, target, records, *args, **kw): """Send a message over this connection.""" return block(self._cxn.sendMessage, target, records, *args, **kw)
def disconnect(self): if self.connected: block(self._cxn.disconnect) self.connected = False
def _getAttrs(self): if not self.connected: return [] return block(self._mgr.getServersList)
def _getAttrs(self): info = block(self._mgr.getServerInfo, self.ID) self.__doc__, self.notes, self._slist = info return self._slist