From 232a398f9df97c00a7a62657118ec49f5d174583 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Tue, 15 Mar 2011 12:30:20 -0700 Subject: uhd: added missing set_tx_antenna() in tx waveforms --- host/examples/tx_waveforms.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'host/examples') diff --git a/host/examples/tx_waveforms.cpp b/host/examples/tx_waveforms.cpp index 9c45e918b..5b3a1b70c 100644 --- a/host/examples/tx_waveforms.cpp +++ b/host/examples/tx_waveforms.cpp @@ -137,6 +137,9 @@ int UHD_SAFE_MAIN(int argc, char *argv[]){ std::cout << boost::format("Actual TX Bandwidth: %f MHz...") % usrp->get_tx_bandwidth() << std::endl << std::endl; } + //set the antenna + if (vm.count("ant")) usrp->set_tx_antenna(ant); + //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; -- cgit v1.2.3