aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples/tx_samples_from_file.cpp
Commit message (Collapse)AuthorAgeFilesLines
* example: Check for failure in tx_samples_from_fileSamuel O'Brien2020-07-311-3/+9
| | | | | | | | | | | I was using this example for testing with the simulator. If there is a flow control failure, the original example would just silently finish, outputing the message "Done!" (Not even printing a timeout message). This commit asserts that the number of samples sent is equal to the number of samples provided. Signed-off-by: Samuel O'Brien <sam.obrien@ni.com>
* uhd: Remove deprecated objects and methodsMartin Braun2019-11-261-2/+0
| | | | | | | | | This removes the following symbols: - otw_type_t - clock_config_t - Any functions that use those symbols - Non-standard args from examples (e.g., --total-time is deprecated in favour of --duration)
* Examples: wrap up ref setting with option checknatetemple2019-11-241-1/+3
|
* examples: remove thread priority elevationCiro Nishiguchi2019-10-221-2/+0
| | | | | | | Remove UHD call to elevate thread priority to realtime. Setting all threads to the same realtime priority can cause the threads to not share access to the network interface fairly, which adversely affects operation of the worker threads in UHD.
* uhd: mpm: apply clang-format to all filesBrent Stapleton2019-01-161-81/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Applying formatting changes to all .cpp and .hpp files in the following directories: ``` find host/examples/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/tests/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/dboard/neon/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/dboard/magnesium/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/device3/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/mpmd/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/lib/usrp/x300/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find host/utils/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file find mpm/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file ``` Also formatted host/include/, except Cpp03 was used as a the language standard instead of Cpp11. ``` sed -i 's/ Cpp11/ Cpp03/g' .clang-format find host/include/ -iname *.hpp -o -iname *.cpp | \ xargs clang-format -i -style=file ``` Formatting style was designated by the .clang-format file.
* examples: utils: skip formatting program optionsBrent Stapleton2019-01-161-0/+2
| | | | | | Turning off clang formatting around the program option declarations. clang-format makes them looks bad an unreadable because it thinks the options are function calls or something.
* Examples: update lo-offset naming in tx from filenatetemple2019-01-101-4/+7
| | | | Update tx_samples_from_file lo-offset naming convention
* examples: Remove superfluous sleepMartin Braun2018-04-181-2/+0
|
* examples: Fix some minor compiler warningsMartin Braun2018-02-191-3/+11
| | | | All warnings reported by MSVC. Mostly related to narrowing conversions.
* uhd: Update license headersMartin Braun2018-02-191-1/+2
| | | | | | | All copyright is now attributed to "Ettus Research, a National Instruments company". SPDX headers were also updated to latest version 3.0.
* examples: Fix bandwidth unit (MHz vs. Hz) in tx_samples_from_fileMartin Braun2018-01-151-2/+6
|
* Move all license headers to SPDX format.Martin Braun2017-12-221-12/+1
|
* utils: add set_thread_name API call, move thread_priority to threadAndrej Rode2017-06-291-1/+1
|
* examples: Added channel param for samps to/from file exampleAshish Chaudhari2017-05-241-11/+17
| | | | - Also, fixed an issue with the --repeat option in tx_samples_from_file
* Warning fixesNicholas Corgan2015-03-271-2/+2
| | | | | | | * CMake now not applying C++ flags to C files * GCC 4.4: anti-aliasing rules * MSVC: narrowing, differences in subclass function parameters * Clang: uninitialized variables
* host/examples: rm'ed refs to d'boards, IF freq.Marcus Müller2014-12-121-4/+4
| | | | | To reflect a reality where some USRPs don't have daughterboards, and set_xx_bandwidth doesn't necessarily set an /IF/ bandwidth.
* Fixing help text for --ref argument in some examples. Reported by MarcusBen Hilburn2014-06-301-1/+1
| | | | Mueller.
* Pushing the bulk of UHD-3.7.0 code.Ben Hilburn2014-02-141-1/+1
|
* Merging USRP X300 and X310 support!!Ben Hilburn2014-02-041-2/+5
|
* 120 MHz daughterboard support, Integer-N tuning, ADF435x code consolidationNicholas Corgan2014-01-241-2/+6
| | | | | | | * Added support for new CBX-120, SBX-120, and WBX-120 daughterboards * Added implementation of Integer-N tuning for all CBX, SBX, and WBX daughterboards * Added --int-n option to examples to show how to use Integer-N tuning API * Removed duplicate ADF4350/ADF4351 code and moved it to common/adf435x_common.cpp
* examples & utils: return EXIT_FAILURE and EXIT_SUCCESS respectivelyMoritz Fischer2012-10-261-1/+1
| | | | instead of 0 and 1.
* examples: tx_samples_from_file can now repeatedly transmit file with ↵Nicholas Corgan2012-10-101-7/+27
| | | | optional delays between transmissions
* uhd: added wire format option for tx samples exampleJosh Blum2012-06-181-5/+7
|
* uhd: updated ref sensor checks for new option namesJosh Blum2011-11-101-2/+2
|
* uhd: modify examples to use new time/clock source APIJosh Blum2011-11-071-13/+2
|
* uhd: renamed some of the stream types and functionsJosh Blum2011-11-031-2/+2
|
* uhd: updated examples to use new streamer interfaceJosh Blum2011-11-031-8/+9
|
* uhd: help messages for user on rx samples to fileJosh Blum2011-10-081-1/+1
|
* Updates to example appsJason Abele2011-09-211-1/+36
| | | | | | Add --ref option to specify mboard clock reference source Add check for lock to mboard clock reference (where applicable) Add check of daughterboard LO lock detect (where applicable)
* uhd: added continuous streaming and new options to tx_waveformsJosh Blum2011-03-111-4/+4
|
* uhd: a lot of tweaking, new parameters, and sig handler for to/from file ↵Josh Blum2011-03-111-16/+43
| | | | examples
* uhd: created tx_samples_from_file.cpp and added to rx_samples_to_file.cppJosh Blum2011-03-111-0/+122