aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/rx_timed_samples.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2011-03-11 20:30:04 -0800
committerJosh Blum <josh@joshknows.com>2011-03-11 20:30:04 -0800
commitf7687f06cf3005bd8c4f66d0708b24738ec34d1d (patch)
tree010ac98f3468a628cce79d486859754caa2861cb /host/examples/rx_timed_samples.cpp
parentcadafd4c3e67203aea80b99bd3839fc84ff7c17f (diff)
downloaduhd-f7687f06cf3005bd8c4f66d0708b24738ec34d1d.tar.gz
uhd-f7687f06cf3005bd8c4f66d0708b24738ec34d1d.tar.bz2
uhd-f7687f06cf3005bd8c4f66d0708b24738ec34d1d.zip
uhd: created rx_multi_samples for multi-channel example
Diffstat (limited to 'host/examples/rx_timed_samples.cpp')
-rw-r--r--host/examples/rx_timed_samples.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/host/examples/rx_timed_samples.cpp b/host/examples/rx_timed_samples.cpp
index 046b9d367..28d7ee466 100644
--- a/host/examples/rx_timed_samples.cpp
+++ b/host/examples/rx_timed_samples.cpp
@@ -32,7 +32,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
std::string args;
double seconds_in_future;
size_t total_num_samps;
- double rate, freq, clock;
+ double rate, clock;
//setup the program options
po::options_description desc("Allowed options");
@@ -43,7 +43,6 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
("nsamps", po::value<size_t>(&total_num_samps)->default_value(10000), "total number of samples to receive")
("clock", po::value<double>(&clock), "master clock frequency in Hz")
("rate", po::value<double>(&rate)->default_value(100e6/16), "rate of incoming samples")
- ("freq", po::value<double>(&freq)->default_value(0), "rf center frequency in Hz")
("dilv", "specify to disable inner-loop verbose")
;
po::variables_map vm;
@@ -75,11 +74,6 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
usrp->set_rx_rate(rate);
std::cout << boost::format("Actual RX Rate: %f Msps...") % (usrp->get_rx_rate()/1e6) << std::endl << std::endl;
- //set the rx center frequency
- std::cout << boost::format("Setting RX Freq: %f Mhz...") % (freq/1e6) << std::endl;
- usrp->set_rx_freq(freq);
- std::cout << boost::format("Actual RX Freq: %f Mhz...") % (usrp->get_rx_freq()/1e6) << std::endl << std::endl;
-
std::cout << boost::format("Setting device timestamp to 0...") << std::endl;
usrp->set_time_now(uhd::time_spec_t(0.0));