Hello everyone!
We are confused about the error returned by set_rx_center_freq. The code
below is executed while the USRP2 is running.
usrp2::usrp2::sptr u2;
//-- clip --//
usrp2::tune_result tr;
if (!u2->set_rx_center_freq(new_freq, &tr)){
fprintf(stderr, “set_rx_center_freq(%g) failed\n”, new_freq);
//exit(1);
}
This results in that the set_rx_center_freq returns an error, but when
looking at a plot of the received signal, the center frequency seemes to
be set to the new frequency after all.
Regards
//Ulrika
On Fri, Jun 12, 2009 at 06:05:54PM +0200, Ulrika U. wrote:
fprintf(stderr, “set_rx_center_freq(%g) failed\n”, new_freq);
//exit(1);
}
This results in that the set_rx_center_freq returns an error, but
when looking at a plot of the received signal, the center frequency
seemes to be set to the new frequency after all.
Regards
//Ulrika
What daughterboard are you using?
Eric
I was using the RFX2400 daughterboard.
/Ulrika
-----Ursprungligt meddelande-----
Från: Eric B. [mailto:[email protected]]
Skickat: den 12 juni 2009 20:18
Till: Ulrika U.
Kopia: GNU Radio D.ion
Ämne: Re: [Discuss-gnuradio] Error message when setting new center
frequency
On Fri, Jun 12, 2009 at 06:05:54PM +0200, Ulrika U. wrote:
fprintf(stderr, “set_rx_center_freq(%g) failed\n”, new_freq);
//exit(1);
}
This results in that the set_rx_center_freq returns an error, but when
looking at a plot of the received signal, the center frequency seemes
to be set to the new frequency after all.
Regards
//Ulrika
What daughterboard are you using?
Eric