summaryrefslogtreecommitdiffstats
path: root/host/examples
diff options
context:
space:
mode:
authorPhilip Balister <philip@opensdr.com>2010-08-19 16:27:51 +0000
committerPhilip Balister <philip@opensdr.com>2010-08-19 16:27:51 +0000
commitf568f651c423fca8c9cf607655ea50ac4cfab524 (patch)
treeb031fa59ba4f47ac42792eaf2b783028787b5978 /host/examples
parent2ef82f57b815a9e53685617f1b779d4cbdf7fb31 (diff)
downloaduhd-f568f651c423fca8c9cf607655ea50ac4cfab524.tar.gz
uhd-f568f651c423fca8c9cf607655ea50ac4cfab524.tar.bz2
uhd-f568f651c423fca8c9cf607655ea50ac4cfab524.zip
Add gain setting to tx_timed_samples program.
Diffstat (limited to 'host/examples')
-rw-r--r--host/examples/tx_timed_samples.cpp1
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));