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