summaryrefslogtreecommitdiff
path: root/gr-uhd/apps/uhd_siggen_base.py
Commit message (Collapse)AuthorAgeFilesLines
* uhd: pep8 formattingJosh Morman2021-11-241-26/+40
| | | | Signed-off-by: Josh Morman <jmorman@gnuradio.org>
* uhd: Update uhd_siggen_gui to allow setting absolute powerMartin Braun2020-09-101-4/+70
| | | | | | | | | | | | | | | | | | | | | | | | | 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-27/+27
| | | | | | | - 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
|
* Fix typos from switch to Python 3Håkon Vågsether2017-08-211-1/+1
|
* python3: update non-GRC components to use python2 or python3Douglas Anderson2017-02-261-9/+11
|
* uhd: Updates to UHDApp and siggen appsMartin Braun2016-08-011-43/+51
| | | | | | | - 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
* uhd: Updated uhd_siggen_gui (uses QT), added GRC siggen exampleMartin Braun2015-09-241-230/+121
| | | | | | | - 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
* Removing trailing/extra whitespaces before release.Tom Rondeau2014-07-071-1/+1
| | | | We should be more careful about letting these into the code in the future. In emacs, we can use (add-hook 'before-save-hook 'delete-trailing-whitespace).
* uhd: extended uhd::dict to be able to be used like a Python dictionaryNicholas Corgan2013-09-231-4/+4
| | | | | * Both dict["key"] and dict.get("key") syntax work * Updated uhd_fft, uhd_rx_cfile, and uhd_siggen_base.py to use new syntax
* uhd: if B2X0 is connected, change USRP config info strings to account for ↵Nicholas Corgan2013-08-161-1/+4
| | | | lack of daughterboard
* analog: fixing up UHD apps to use gr-analog module.Tom Rondeau2012-12-311-6/+6
|
* blocks: removes blocks moved to gr-blocks from gnuradio-core.Tom Rondeau2012-12-211-2/+3
| | | | Also fixes up some other missing moves.
* analog: Removing reference to gr.sig_source_X and gr.noise_source_X where ↵Tom Rondeau2012-11-061-31/+32
| | | | | | | | possible. Passing make and make test. Examples and apps need testing. gr-filter relies on sig_source and noise_source, so can't remove them from core.
* docs: Changed arguments in python docstrings to new formatting style.Ben Reynwar2012-08-141-1/+3
|
* gr-uhd: uhd_fft and uhd_siggen_base.py now use subdev names instead of ↵Nicholas Corgan2012-04-231-3/+3
| | | | dboard id's
* Removed whitespace and added dtools/bin/remove-whitespace as a tool to do ↵Tom Rondeau2012-04-131-12/+12
| | | | | | this in the future. The sed script was provided by Moritz Fischer.
* Merge branch 'master' into nextJohnathan Corgan2012-04-051-11/+15
|
* Merge remote branch 'tom/cmake_builds' into nextJohnathan Corgan2012-04-041-3/+23
|
* build: removed .py extensions from uhd and shd installed Python programs.Tom Rondeau2012-04-021-0/+371