aboutsummaryrefslogtreecommitdiffstats
path: root/host/examples
Commit message (Collapse)AuthorAgeFilesLines
* 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
| |
* | Merge branch 'maint'Martin Braun2017-03-012-5/+6
|\|
| * examples: Replaced throw with exit() in sync_to_gpsMartin Braun2017-02-271-1/+2
| |
| * examples: Added some more error strings to test_messagesMartin Braun2017-02-271-4/+4
| |
* | uhd: replace BOOST_FOREACH with C++11 range-based for loopAndrej Rode2017-02-104-11/+9
| | | | | | | | | | Note: This is the first commit that uses for-range, and range-based for-loops are now usable for UHD development.
* | init_usrp: add c++11 flags to compiler if availableAndrej Rode2017-02-101-0/+19
|/
* examples: Fix and cleanup test messagesPaul David2017-02-071-4/+14
|
* GPIO: Set CTRL register before OUT register in GPIO example.michael-west2016-12-091-3/+3
|