summaryrefslogtreecommitdiff
path: root/gr-uhd/apps/uhd_app.py
Commit message (Collapse)AuthorAgeFilesLines
* uhd: pep8 formattingJosh Morman2021-11-241-29/+48
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* gr-uhd: fix misspelling of 'request' in several locationsJacob Gilbert2021-01-141-1/+1
|
* gr-uhd: clean up import of msgq_runner in uhd_app.pyJosh Morman2020-12-171-2/+1
|
* move msgq_runner out of runtime into gr-uhd/apps, its single consumerMarcus Müller2020-12-171-2/+2
| | | | Signed-off-by: Marcus Müller <mmueller@gnuradio.org>
* uhd: Update uhd_siggen_gui to allow setting absolute powerMartin Braun2020-09-101-11/+36
| | | | | | | | | | | | | | | | | | | | | | | | | Note: This requires a USRP with power API enabled. Summary of changes: - uhd_app now provides the --power argument and applies it as a reference power level. It clashes with --gain. UHDApp now has two 'modes' for setting the power: Via gain (the previous, standard way) or by setting a power. UHDApp calls all the right APIs for each use case. - uhd_siggen_base is now aware of these settings and will make sure the output power is correct by combining the requested power and the requested amplitude (meaning, it sets a ref power that is at the correct level above the requested power level). - The GUI can now set either power or gain, depending on command line arguments. When changing the amplitude in power mode, the ref power is also changed so the output power (in dBm) stays the same when the amplitude changes. - siggen now checks for invalid amplitudes (must be in 0 <= amplitude <= 1). - --amplitude was moved from uhd_app.py to uhd_siggen_base.py, where it belongs. uhd_fft for example does not have that argument. - If --amplitude is set to 0.0, then it now fails in power mode. It's still possible in gain mode.
* uhd: Clean up Python code for uhd_siggen_* and uhd_appMartin Braun2020-08-141-53/+74
| | | | | | | - Fix formatting - Fix PyLint complaints No functional changes.
* python: Remove unnecessary 'from __future__ import'Oleksandr Kravchuk2020-08-031-3/+0
| | | | | | | | | | | | | | | | All of the removed `from __future__ import` were needed in older versions of Python (mostly 2.5.x and below) but later became mandatory in most versions of Python 3 hence are not necessary anymore. More specifically, according to __future__.py[1]: - unicode_literals is part of Python since versions 2.6.0 and 3.0.0; - print_function is part of Python since versions 2.6.0 and 3.0.0; - absolute_import is part of Python since versions 2.5.0 and 3.0.0; - division is part of Python since versions 2.2.0 and 3.0.0; Get rid of those unnecessary imports to slightly clean up the codebase. [1] https://github.com/python/cpython/blob/master/Lib/__future__.py
* Update license header to SPDX formatdevnulling2020-01-271-13/+1
|
* gr-uhd: Improve input parameter exception handling for uhd_appBrennan Ashton2018-11-151-3/+5
|
* Merge remote-tracking branch 'origin/next' into merge_nextMarcus Müller2018-08-311-10/+11
|\
| * Merge branch 'next' into python3Johnathan Corgan2017-06-221-14/+5
| |\ | | | | | | | | | | | | Conflicts: gr-uhd/apps/uhd_app.py
| * \ Merge branch 'next' into python3Johnathan Corgan2017-06-221-0/+1
| |\ \ | | | | | | | | | | | | | | | | Conflicts: gnuradio-runtime/python/gnuradio/gr/tag_utils.py
| * \ \ Merge branch 'next' into python3Johnathan Corgan2017-04-171-16/+21
| |\ \ \
| * \ \ \ Merge branch 'next' into python3Johnathan Corgan2017-04-031-3/+2
| |\ \ \ \
| * \ \ \ \ Merge branch 'next' into python3Johnathan Corgan2017-03-161-41/+33
| |\ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: gr-blocks/swig/blocks_swig.py.in gr-uhd/apps/uhd_app.py
| * | | | | | python3: update non-GRC components to use python2 or python3Douglas Anderson2017-02-261-9/+11
| | | | | | |
* | | | | | | UHD: Allow uhd_app to handle all LOs externalDerek Kozel2018-05-261-8/+10
| |_|_|_|_|/ |/| | | | | | | | | | | | | | | | | | | | | | | When all LOs are externally sourced there is no primary channel to use actual tune data from.
* | | | | | Merge remote-tracking branch 'github/pr/1328'Johnathan Corgan2017-06-221-14/+5
|\ \ \ \ \ \ | |_|_|_|_|/ |/| | | | |
| * | | | | uhd: Properly normalized selection of options for multi-device opsMartin Braun2017-06-091-14/+5
| | |_|_|/ | |/| | | | | | | | | | | | | | | | | | Before, there was an issue where things could go awry with multiple devices and only specifying a single --spec option.
* | | | | Merge branch 'maint'Johnathan Corgan2017-06-221-0/+1
|\ \ \ \ \ | |/ / / / |/| | | | | | | | | | | | | | Conflicts: gr-uhd/apps/uhd_app.py
| * | | | uhd: Fixed error message for when multiple board options given are incorrectMartin Braun2017-06-071-1/+1
| |/ / /
* | | / gr-uhd: dont assign back to argsAndrej Rode2017-04-141-16/+21
| |_|/ |/| | | | | | | | | | | | | | don't assign values back to args since that breaks apps who use the same args to instantiate multiple usrp objects (e.g. tx and rx) with the same arguments
* | | uhd: Fix antenna selection on UHD appsMartin Braun2017-04-031-3/+2
| |/ |/|
* | gr-uhd: select time/clock-sources in uhd_app per motherboard, cleanupAndrej Rode2017-01-191-40/+33
|/ | | | normalize_sel code
* Merge branch 'maint'Johnathan Corgan2016-12-101-16/+16
|\
| * gr-uhd: channel numbers are resolved in usrp_block, work with indices in uhd_appAndrej Rode2016-12-071-16/+16
| |
* | gr-uhd: add TwinRX LO sharing arguments to uhd_appAndrej Rode2016-11-161-0/+53
|/
* uhd: uhd_apps may now specify multiple subdev specsMartin Braun2016-10-121-3/+21
|
* uhd: Updates to UHDApp and siggen appsMartin Braun2016-08-011-8/+27
| | | | | | | - Added time source option - Fixed bug where sources where not applied to all motherboards - Various formatting cleanups (better Pylint score) - Catch case where lo_locked sensor detection fails
* Merge branch 'maint'Johnathan Corgan2016-02-121-6/+16
|\
| * uhd: Loosen requirements for multi-chan ops to have timed command capabilityMartin Braun2016-02-121-6/+16
| |
* | uhd: added a --clock-source argument, defaulting to "internal"Marcus Müller2016-01-271-1/+6
|/
* uhd: Fixed bug in single-channel case (index error)Martin Braun2015-10-271-1/+1
|
* uhd: Fixed some uhd_fft issuesMartin Braun2015-10-191-5/+4
| | | | | - --help didn't work - Some tuning corner cases weren't properly handled
* uhd: uhd_fft now uses UHDApp, some bugfixesMartin Braun2015-09-281-3/+11
| | | | | - UHDApp would not accept new frequencies after startup - uhd_fft now has multi-channel capabiltities
* uhd: Updated uhd_siggen_gui (uses QT), added GRC siggen exampleMartin Braun2015-09-241-0/+292
- Added uhd_app.py base class for example apps - uhd_siggen and uhd_siggen_gui now both use uhd_app - siggen now also multi-channel capabilities - siggen_gui fully QT, no more WX