discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Correct idiom for frequency-setting when you don'


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] Correct idiom for frequency-setting when you don't have a tuner-type daughtercard?
Date: Sat, 24 Jun 2006 10:21:44 -0700
User-agent: Mutt/1.5.9i

On Sat, Jun 24, 2006 at 12:52:11PM -0400, Marcus Leech wrote:
> I'm modifying my radio astronomy applications to support other than 
> tuner-type daughtercards.
> 
> Is this roughly correct for supporting such cards (BASIC_RX is the only 
> one I know of)?

I believe usrp.tune works correctly with all daughterboards.

Or slightly more compactly:

    r = self.u.tune(0, self.subdev, target_freq)
   
Eric

>        #
>        # Everything except BASIC_RX should support usrp.tune()
>        #
>        if not (self.cardtype == usrp_dbid.BASIC_RX):
>            r = usrp.tune(self.u, 0, self.subdev, target_freq)
>        else:
>            r = self.u.set_rx_freq(0, target_freq)
>            f = self.u.rx_freq(0)
>            if (abs(f-target_freq) > 2.0e3:
>                r = 0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]