aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples
Commit message (Collapse)AuthorAgeFilesLines
* uhd: Add benchmark_streamer exampleCiro Nishiguchi2018-10-112-0/+498
|
* examples: add rfnoc_radio_loopbackTrung Tran2018-09-142-0/+214
| | | | This example will allow an RF->RF loopback using RFNoC devices.
* python: Fix duration of benchmark rateBrent Stapleton2018-09-121-1/+1
| | | | | | | | Duration of multichannel benchmark was 50 seconds longer than intended- a 50ms initialization delay was mistakenly multiplied by 1000. Fixes e735a63ff9e ("python: Adding Python API benchmark rate")
* Examples: Fix channel argument for rx_samples_to_fileMichael West2018-08-291-18/+18
|
* RFNoC: Add Replay API and exampleWade Fife2018-08-291-0/+367
|
* uhd: Remove usage of time_t (except when required)Martin Braun2018-08-203-7/+7
| | | | | | | | | | The C/C++ standards don't define what time_t is, only that it is arithmetic (and real for C11, and integral for C++). It should not be used in portable software and is only used as the return value for some libc calls. A common definition for time_t is int64_t, so we'll switch to that permanently in our own APIs. System APIs will of course stick with time_t.
* rfnoc: examples: Removed some legacy code patterns from RFNoC examplesMartin Braun2018-08-022-34/+45
| | | | | - Unnecessary use of Boost - Use of thread_priority.hpp
* UHD: Added RFNoC examplesMartin Braun2018-06-223-0/+830
|
* python: Adding Python API benchmark rateBrent Stapleton2018-06-202-0/+482
| | | | Python API version of the benchmark rate utility.
* python: Added curses frequency plot examplePaul David2018-06-202-0/+153
|
* python: Separating exposed Python data structuresPaul David2018-06-203-55/+38
| | | | | | | | | - Separating exposed Python data structures into logical sections - Exposes all of the multi_usrp API - Adds a layer of Python for documentation and adding helper methods - Adds improvements and fixes to the MultiUSRP object - Includes additional exposed data structures (like time_spec_t, etc.) - Add code to release the Python GIL during long C++ calls
* python: Initial commit of Python APIAndrej Rode2018-06-204-0/+137
| | | | | | | | | | Initial commit of the Python API using Boost.Python. Bind the MultiUSRP API for use in Python. Bindings intended to provide as complete coverage as possible. - Wrap most multi_usrp calls - Adding multi channel send/recv examples in examples/python - Adding setuptools support - Initial attempt at binding the UHD types and filters
* examples: Select subdev spec before setting channelsSugandha Gupta2018-06-121-4/+3
|
* examples: Remove use of boost::posix_time from rx_ascii_art_dftMartin Braun2018-05-091-3/+8
|
* examples: Avoid calculating dropped samples for negative offsetsMartin Braun2018-05-031-1/+10
| | | | | | | | | | | | There are cases when the first sample after an overrun has an earlier timestamp than the timestamp of the error package. In this case, benchmark_rate would incorrectly determine the number of dropped samples, causing it to display a very large number. This is not a fix of the negative offset issue, but will avoid displaying overly pessimistic numbers dropped samples. An error message is still displayed when this happens, which aids in debugging this situation.
* examples: Fix sleep duration in benchmark_rateMartin Braun2018-05-031-1/+1
| | | | | | The main thread sleeps while the receiver and transmitter threads are going on. This fixes the calculated time it takes in single-channel scenarios.
* examples: Add failure modes to benchmark_rateMartin Braun2018-05-031-20/+86
| | | | | | | | | | | When too many overruns, underruns, or dropped packets are detected, benchmark_rate will now return EXIT_FAILURE. This allows to use it for automated tests. The thresholds are set very high by default, but can be manually tuned by using new command line arguments: $ benchmark_rate --overrun-threshold 0 # Fail on any number of Os
* lib: Purge all references to boost::this_thread::sleep()Martin Braun2018-04-309-31/+41
| | | | Replace with std::this_thread::sleep_for().
* examples: De-boostify rx_samples_to_fileMartin Braun2018-04-181-47/+93
| | | | | Removes boost::bind and all Boost time types from this example. Re-enables compatibility with Boost 1.67.
* examples: Remove superfluous sleepMartin Braun2018-04-181-2/+0
|
* uhd: update settling time to double in txrx_loopback_to_file exampleDaniel Jepson2018-04-101-4/+4
|
* uhd: increase tx buffer fill time for txrx_loopback_to_file exampleDaniel Jepson2018-04-101-1/+1
| | | | | The previous 0.1s fill time occasionally prevented rx from starting on time when settling is set to the same 0.1s time. It was increased to 0.5s.
* uhd: fix subdevice selection order in txrx_loopback_to_file exampleDaniel Jepson2018-04-101-4/+4
|
* example: Refactor gpio.cppMartin Braun2018-03-301-12/+22
| | | | | | Minor changes: - Remove some Boost usage - Minor formatting changes
* examples: Update benchmark_rate (more stats, timestamps)Martin Braun2018-03-141-57/+111
| | | | | | | | - Messages are all timestamped, enables better understanding of the output log - Less usage of Boost - More stats (differentiate between RX and TX timeouts and sequence errors)
* uhd: Moved get_system_time outside of public APIMartin Braun2018-03-051-3/+6
| | | | | | | uhd::get_system_time() is an abstracted way of reading back a time, and is not UHD-specific. As such, there's no reason to keep it in the public part of the API where we're contractually obligated not to touch it. Instead, moving it to the internal API space.
* examples: Fix some minor compiler warningsMartin Braun2018-02-197-17/+38
| | | | All warnings reported by MSVC. Mostly related to narrowing conversions.
* uhd: Update license headersMartin Braun2018-02-1930-28/+58
| | | | | | | All copyright is now attributed to "Ettus Research, a National Instruments company". SPDX headers were also updated to latest version 3.0.
* examples: replace `boost::format%(a,b)` by `(boost::format%a%b)`Marcus Müller2018-02-191-1/+1
| | | | | | | | The former compiles to evaluating `a`, then throwing away the result, evaluating `b`, then using that to fill in the first placeholder in `format`. And that is wrong. Pointed to this by Clang++'s "unused result" warning.
* examples: Fix bandwidth unit (MHz vs. Hz) in tx_samples_from_fileMartin Braun2018-01-151-2/+6
|
* examples: Add example to query and list all sensorsMartin Braun2018-01-122-0/+127
| | | | Reviewed-by: Brent Stapleton <brent.stapleton@ettus.com>
* Move all license headers to SPDX format.Martin Braun2017-12-2228-336/+28
|
* Fix build with Boost 1.66ilovezfs2017-12-191-2/+2
| | | | Thanks to FX Coudert for suggesting this fix.
* Merge branch 'maint'Martin Braun2017-07-171-8/+71
|\
| * examples: Improved output for latency_testMartin Braun2017-06-301-8/+71
| |
* | examples/c-api: Fix invalid free of device_argssugandhagupta2017-06-292-8/+10
| | | | | | | | | | | | | | | | | | One does not simply free() stack / automatic variables. Please `man 3 strdup()`. Signed-off-by: Sugandha Gupta <sugandha.gupta@ettus.com> Signed-off-by: Moritz Fischer <moritz.fischer@ettus.com>
* | utils: add set_thread_name API call, move thread_priority to threadAndrej Rode2017-06-2922-25/+28
| |
* | uhd: Replaced many lexical_cast with appropriate C++11 equivalentsMartin Braun2017-06-296-22/+18
| |
* | Merge branch 'maint'Martin Braun2017-06-023-9/+9
|\|
| * Examples: Fix ascii typosnatetemple2017-05-203-9/+9
| |
* | examples: Added channel param for samps to/from file exampleAshish Chaudhari2017-05-242-13/+24
| | | | | | | | - Also, fixed an issue with the --repeat option in tx_samples_from_file
* | examples: Added real streaming modesMartin Braun2017-05-151-5/+12
| |
* | Merge branch 'maint'Martin Braun2017-05-032-4/+7
|\|
| * examples: fix device_args parsing in tx_samples_cAndrej Rode2017-04-251-2/+5
| |
| * uhd: cast thread_group.create_thread() return value to void to avoid memory leakAndrej Rode2017-04-251-2/+2
| |
* | Merge branch 'maint'Martin Braun2017-04-131-29/+4
|\|
| * examples: use next_pps in test_clock_synchAndrej Rode2017-04-121-29/+4
| |
* | Merge branch 'maint'Martin Braun2017-03-242-0/+284
|\|
| * examples: Revised frequency hopping example for best practicesLogan Fagg2017-03-211-126/+114
| |
| * examples: Created TwinRX frequency hopping examplenate.temple2017-03-212-0/+296
| |