diff options
author | Josh Blum <josh@joshknows.com> | 2010-07-13 14:41:28 -0700 |
---|---|---|
committer | Josh Blum <josh@joshknows.com> | 2010-07-13 14:41:28 -0700 |
commit | 76d3ccce2598c1c91ee7e55f92bc571db455cc18 (patch) | |
tree | 17bcdc33500e5a2c604494a37751f1f946663714 | |
parent | 403dc2e4badec9ca88d778597df5108c78aa4c76 (diff) | |
download | uhd-76d3ccce2598c1c91ee7e55f92bc571db455cc18.tar.gz uhd-76d3ccce2598c1c91ee7e55f92bc571db455cc18.tar.bz2 uhd-76d3ccce2598c1c91ee7e55f92bc571db455cc18.zip |
uhd: benchmark app, stop if left running initially
-rw-r--r-- | host/examples/benchmark_rx_rate.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/host/examples/benchmark_rx_rate.cpp b/host/examples/benchmark_rx_rate.cpp index 2bde3865d..752facb0d 100644 --- a/host/examples/benchmark_rx_rate.cpp +++ b/host/examples/benchmark_rx_rate.cpp @@ -137,6 +137,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ std::cout << boost::format("Creating the usrp device with: %s...") % args << std::endl; uhd::usrp::simple_usrp::sptr sdev = uhd::usrp::simple_usrp::make(args); std::cout << boost::format("Using Device: %s") % sdev->get_pp_string() << std::endl; + sdev->issue_stream_cmd(uhd::stream_cmd_t::STREAM_MODE_STOP_CONTINUOUS); //stop if left running if (not vm.count("rate")){ sdev->set_rx_rate(500e3); //initial rate |