diff options
author | Philip Balister <philip@opensdr.com> | 2010-08-19 16:27:51 +0000 |
---|---|---|
committer | Philip Balister <philip@opensdr.com> | 2010-08-19 16:27:51 +0000 |
commit | f568f651c423fca8c9cf607655ea50ac4cfab524 (patch) | |
tree | b031fa59ba4f47ac42792eaf2b783028787b5978 | |
parent | 2ef82f57b815a9e53685617f1b779d4cbdf7fb31 (diff) | |
download | uhd-f568f651c423fca8c9cf607655ea50ac4cfab524.tar.gz uhd-f568f651c423fca8c9cf607655ea50ac4cfab524.tar.bz2 uhd-f568f651c423fca8c9cf607655ea50ac4cfab524.zip |
Add gain setting to tx_timed_samples program.
-rw-r--r-- | host/examples/tx_timed_samples.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/host/examples/tx_timed_samples.cpp b/host/examples/tx_timed_samples.cpp index aa22d3465..fa5bf4b2b 100644 --- a/host/examples/tx_timed_samples.cpp +++ b/host/examples/tx_timed_samples.cpp @@ -75,6 +75,7 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ std::cout << boost::format("Setting device timestamp to 0...") << std::endl; sdev->set_tx_freq(freq); sdev->set_time_now(uhd::time_spec_t(0.0)); + sdev->set_tx_gain(0); //allocate data to send std::vector<std::complex<short> > buff(samps_per_packet, std::complex<short>(ampl, ampl)); |