Beispiel #1
0
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)
Beispiel #2
0
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)
Beispiel #3
0
 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
Beispiel #4
0
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
Beispiel #5
0
 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
Beispiel #6
0
 def _sendMessage(self, target, records, *args, **kw):
     """Send a message over this connection."""
     return block(self._cxn.sendMessage, target, records, *args, **kw)
Beispiel #7
0
 def disconnect(self):
     if self.connected:
         block(self._cxn.disconnect)
         self.connected = False
Beispiel #8
0
 def _getAttrs(self):
     if not self.connected:
         return []
     return block(self._mgr.getServersList)
Beispiel #9
0
 def _getAttrs(self):
     info = block(self._mgr.getServerInfo, self.ID)
     self.__doc__, self.notes, self._slist = info
     return self._slist