aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/tx_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/tx_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/tx_timed_samples.cpp')
-rw-r--r--host/examples/tx_timed_samples.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/host/examples/tx_timed_samples.cpp b/host/examples/tx_timed_samples.cpp
index 25a2c0e43..03f87122d 100644
--- a/host/examples/tx_timed_samples.cpp
+++ b/host/examples/tx_timed_samples.cpp
@@ -33,7 +33,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
std::string args;
double seconds_in_future;
size_t total_num_samps;
- double rate, freq;
+ double rate;
float ampl;
//setup the program options
@@ -44,7 +44,6 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
("secs", po::value<double>(&seconds_in_future)->default_value(1.5), "number of seconds in the future to transmit")
("nsamps", po::value<size_t>(&total_num_samps)->default_value(10000), "total number of samples to transmit")
("rate", po::value<double>(&rate)->default_value(100e6/16), "rate of outgoing samples")
- ("freq", po::value<double>(&freq)->default_value(0), "rf center frequency in Hz")
("ampl", po::value<float>(&ampl)->default_value(float(0.3)), "amplitude of each sample")
("dilv", "specify to disable inner-loop verbose")
;
@@ -71,11 +70,6 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
usrp->set_tx_rate(rate);
std::cout << boost::format("Actual TX Rate: %f Msps...") % (usrp->get_tx_rate()/1e6) << std::endl << std::endl;
- //set the tx center frequency
- std::cout << boost::format("Setting TX Freq: %f Mhz...") % (freq/1e6) << std::endl;
- usrp->set_tx_freq(freq);
- std::cout << boost::format("Actual TX Freq: %f Mhz...") % (usrp->get_tx_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));