Beispiel #1
0
    def __init__(self,
                 theBank,
                 theMode,
                 theRoach,
                 theValon,
                 hpc_macs,
                 unit_test=False):
        """Creates an instance of the VegasL1LBWBackend.  """
        VegasLBWBackend.__init__(self, theBank, theMode, theRoach, theValon,
                                 hpc_macs, unit_test)

        if not self.gain:
            self.gain = [1024
                         ]  # give it a default if config file is mising gain.

        self.progdev()
        self.net_config()

        if self.mode.roach_kvpairs:
            self.write_registers(**self.mode.roach_kvpairs)

        self.reset_roach()
        self.clear_switching_states()
        self.add_switching_state(1.0, blank=False, cal=False, sig_ref_1=False)

        self.prepare()
        self.start_hpc()
        self.start_fits_writer()
        self._init_gpu_resources()
    def __init__(self,
                 theBank,
                 theMode,
                 theRoach=None,
                 theValon=None,
                 hpc_macs=None,
                 unit_test=False):
        """
        Creates an instance of the vegas internals for the L8LBW firmware.
        """

        #print str(theMode)
        # mode_number may be treated as a constant; the Player will
        # delete this backend object and create a new one on mode
        # change.
        VegasLBWBackend.__init__(self, theBank, theMode, \
                                 theRoach , theValon, hpc_macs, unit_test)

        if 'lbw8' in theMode.backend_name.lower():
            nsubbands = 8
        else:
            nsubbands = 1

        self.nsubbands = nsubbands

        if not self.gain:
            self.gain = [1024] * nsubbands

        # default dependent values, computed from Parameters:
        # a resonable default:
        self.subbandfreq = [convertToMHz(self.frequency / 2) * 1.0e6
                            ] * nsubbands
        self.actual_subband_freq = self.subbandfreq
        # L8 specific parameters
        self.params["subband_freq"] = self._setSubbandFreq
        self.lbwmixer = LBWMixerCalcs(self.frequency)

        self.progdev()
        self.net_config()

        if self.mode.roach_kvpairs:
            self.write_registers(**self.mode.roach_kvpairs)

        self.reset_roach()
        self.clear_switching_states()
        self.add_switching_state(1.0, blank=False, cal=False, sig_ref_1=False)

        self.prepare()
        self.start_hpc()
        self.start_fits_writer()
        self._init_gpu_resources()
    def __init__(self, theBank, theMode, theRoach=None, theValon=None, hpc_macs=None, unit_test = False):
        """
        Creates an instance of the vegas internals for the L8LBW firmware.
        """

        #print str(theMode)
        # mode_number may be treated as a constant; the Player will
        # delete this backend object and create a new one on mode
        # change.
        VegasLBWBackend.__init__(self, theBank, theMode, \
                                 theRoach , theValon, hpc_macs, unit_test)

        if 'lbw8' in theMode.backend_name.lower():
            nsubbands = 8
        else:
            nsubbands = 1

        self.nsubbands = nsubbands

        if not self.gain:
            self.gain = [ 1024 ] * nsubbands

        # default dependent values, computed from Parameters:
        # a resonable default:
        self.subbandfreq = [ convertToMHz(self.frequency/2) * 1.0e6 ] * nsubbands
        self.actual_subband_freq = self.subbandfreq
        # L8 specific parameters
        self.params["subband_freq" ] = self._setSubbandFreq
        self.lbwmixer = LBWMixerCalcs(self.frequency)

        self.progdev()
        self.net_config()

        if self.mode.roach_kvpairs:
            self.write_registers(**self.mode.roach_kvpairs)

        self.reset_roach()
        self.clear_switching_states()
        self.add_switching_state(1.0, blank = False, cal = False, sig_ref_1 = False)

        self.prepare()
        self.start_hpc()
        self.start_fits_writer()
        self._init_gpu_resources()
    def __init__(self, theBank, theMode, theRoach, theValon, hpc_macs, unit_test = False):
        """Creates an instance of the VegasL1LBWBackend.  """
        VegasLBWBackend.__init__(self, theBank, theMode, theRoach, theValon, hpc_macs, unit_test)

        if not self.gain:
            self.gain = [1024] # give it a default if config file is mising gain.

        self.progdev()
        self.net_config()

        if self.mode.roach_kvpairs:
            self.write_registers(**self.mode.roach_kvpairs)

        self.reset_roach()
        self.clear_switching_states()
        self.add_switching_state(1.0, blank = False, cal = False, sig_ref_1 = False)

        self.prepare()
        self.start_hpc()
        self.start_fits_writer()
        self._init_gpu_resources()