aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/tx_waveforms.cpp
diff options
context:
space:
mode:
authorJosh Blum <josh@joshknows.com>2012-03-09 19:09:29 -0800
committerJosh Blum <josh@joshknows.com>2012-03-23 14:36:56 -0700
commitd7a353461100be58eb973532ff2c1b7ddaddda52 (patch)
tree51365f8155b8a0e7f5d8f20af350c0f66fec775c /host/examples/tx_waveforms.cpp
parentea659bd81e2148004c8dc367dabaa76c244adb1d (diff)
downloaduhd-d7a353461100be58eb973532ff2c1b7ddaddda52.tar.gz
uhd-d7a353461100be58eb973532ff2c1b7ddaddda52.tar.bz2
uhd-d7a353461100be58eb973532ff2c1b7ddaddda52.zip
uhd: added setup sleep to tx waveforms
Diffstat (limited to 'host/examples/tx_waveforms.cpp')
-rw-r--r--host/examples/tx_waveforms.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/host/examples/tx_waveforms.cpp b/host/examples/tx_waveforms.cpp
index 6a377fdac..3c5eecd65 100644
--- a/host/examples/tx_waveforms.cpp
+++ b/host/examples/tx_waveforms.cpp
@@ -1,5 +1,5 @@
//
-// Copyright 2010-2011 Ettus Research LLC
+// Copyright 2010-2012 Ettus Research LLC
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
@@ -24,6 +24,7 @@
#include <boost/math/special_functions/round.hpp>
#include <boost/foreach.hpp>
#include <boost/format.hpp>
+#include <boost/thread.hpp>
#include <iostream>
#include <complex>
#include <csignal>
@@ -174,6 +175,8 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){
if (vm.count("ant")) usrp->set_tx_antenna(ant, chan);
}
+ boost::this_thread::sleep(boost::posix_time::seconds(1)); //allow for some setup time
+
//for the const wave, set the wave freq for small samples per period
if (wave_freq == 0 and wave_type == "CONST"){
wave_freq = usrp->get_tx_rate()/2;