Difference between revisions of "User talk:Duggabe"

From GNU Radio
Jump to: navigation, search
(Install UHD from source)
(Added in 3.9)
(3 intermediate revisions by the same user not shown)
Line 12: Line 12:
 
* [[TutorialsDebugging|How to debug your applications]] - not well written; would need major rework and update
 
* [[TutorialsDebugging|How to debug your applications]] - not well written; would need major rework and update
  
== Install UHD from source ==
+
== Testing of QT GUI functions ==
  
If you want to use GNU Radio with a USRP, install the UHD package from source using the following instructions, or refer to the [[https://kb.ettus.com/Building_and_Installing_the_USRP_Open-Source_Toolchain_(UHD_and_GNU_Radio)_on_Linux USRP Manual]] for other options and Operating Systems.
+
=== Instrumentation ===
UHD sits at the same level as GNU Radio as an independent driver, which gr-uhd references.  So if you want gr-uhd enabled, you <b>FIRST</b> must clone and install UHD.
 
  
For this example, we will start in the home directory to parallel the steps in [[InstallingGR#To_install_system_wide]].
+
==== In 3.8 ====
  
<pre>cd ~/</pre>
+
* https://wiki.gnuradio.org/index.php/QT_GUI_Bercurve_Sink - tested OK in 3.9
 +
* https://wiki.gnuradio.org/index.php/QT_GUI_Constellation_Sink - tested OK in 3.9
 +
* https://wiki.gnuradio.org/index.php/QT_GUI_Frequency_Sink - tested OK in 3.9
 +
* https://wiki.gnuradio.org/index.php/QT_GUI_Histogram_Sink - tested OK in 3.9
 +
* https://wiki.gnuradio.org/index.php/QT_GUI_Number_Sink - tested OK in 3.9
 +
* https://wiki.gnuradio.org/index.php/QT_GUI_Sink - tested OK in 3.9
 +
* https://wiki.gnuradio.org/index.php/QT_GUI_Time_Raster_Sink - tested OK in 3.9
 +
* https://wiki.gnuradio.org/index.php/QT_GUI_Time_Sink - tested OK in 3.9
 +
* https://wiki.gnuradio.org/index.php/QT_GUI_Vector_Sink - tested OK in 3.9
 +
* https://wiki.gnuradio.org/index.php/QT_GUI_Waterfall_Sink - tested OK in 3.9
  
The following command line script will install all the required dependencies for UHD:
+
=== GUI Widgets ===
<pre>
 
sudo apt install git cmake g++ libboost-all-dev libgmp-dev swig python3-numpy python3-mako python3-sphinx python3-lxml doxygen libfftw3-dev libsdl1.2-dev libgsl-dev libqwt-qt5-dev libqt5opengl5-dev python3-pyqt5 liblog4cpp5-dev libzmq3-dev python3-yaml python3-click python3-click-plugins python3-zmq python3-scipy python3-gi python3-gi-cairo gobject-introspection gir1.2-gtk-3.0 libusb-1.0-0 libusb-1.0-0-dev libudev-dev python3-setuptools liborc-0.4-0 liborc-0.4-dev
 
</pre>
 
  
Clone the code into your home directory:
+
==== In 3.8 ====
<pre>git clone git://github.com/EttusResearch/uhd.git</pre>
 
<pre>cd ~/uhd</pre>
 
  
<b>Note:</b> In the following command, change <code>v3.15.0.0</code> to some other branch or tag if you want to build a different version.
+
* https://wiki.gnuradio.org/index.php/QT_GUI_Check_Box - tested OK in 3.9
<pre>
+
* https://wiki.gnuradio.org/index.php/QT_GUI_Chooser - tested OK in 3.9
git tag -l
+
* https://wiki.gnuradio.org/index.php/QT_GUI_Entry - tested OK in 3.9
git checkout v3.15.0.0
+
* https://wiki.gnuradio.org/index.php/QT_GUI_Label - tested OK in 3.9
</pre>
+
<br>
 +
* https://wiki.gnuradio.org/index.php/QT_GUI_Message_Edit_Box
 +
    AttributeError: module 'gnuradio.qtgui' has no attribute 'edit_box_msg'
 +
<br>
 +
* https://wiki.gnuradio.org/index.php/QT_GUI_Push_Button - tested OK in 3.9
 +
* https://wiki.gnuradio.org/index.php/QT_GUI_Range - tested OK in 3.9
 +
* https://wiki.gnuradio.org/index.php/QT_GUI_Tab_Widget - tested OK in 3.9
  
<b>Note:</b> Unlike most build processes, this one builds under the <code>host</code> directory.
+
==== Added in 3.9 ====
<pre>
 
cd host
 
mkdir build
 
cd build
 
</pre>
 
  
<b>Note:</b> In the following command, we will use <code>-DCMAKE_INSTALL_PREFIX=/usr/local</code> to install UHD into the same prefix as GNU Radio. When compiling for ARM platforms, the assumption is made that NEON extensions are available if the arm_neon.h header is found. However, for platforms such as Raspberry Pi, one must specify -DNEON_SIMD_ENABLE=OFF in the following command.
+
* QT_GUI_App_Background - tested OK in 3.9
 
+
* QT_GUI_Az-El_Plot - tested OK in 3.9
<pre>
+
* QT_GUI_Compass - tested OK in 3.9
cmake -DNEON_SIMD_ENABLE=OFF -DCMAKE_INSTALL_PREFIX=/usr/local ../
+
* QT_GUI_Dial - tested OK in 3.9
</pre>
+
* QT_GUI_Dial_Gauge - tested OK in 3.9
 
+
* QT_GUI_Digital_Number_Control - tested OK in 3.9
<b>Note:</b> In the following command, if your computer's CPU has multiple cores, you can use the argument <code>-j#</code> to speed compilation; <br> e.g., <code>make -j3</code> will use 3 threads in the build. Specify at least one less than the total number of CPU cores so the system does not appear to 'freeze' during the build. If not specified, then a single thread is used for the build.<br>
+
* QT_GUI_Distance_Radar - tested OK in 3.9
 
+
* https://wiki.gnuradio.org/index.php/QT_GUI_Eye_Sink - tested OK in 3.9
<pre>make -j3
+
* QT_GUI_Fast_Auto-Correlator_Sink - tested OK in 3.9
make test
+
* QT_GUI_Graphic_Item - tested OK in 3.9
sudo make install
+
* QT_GUI_Graphic_Overlay_Sample_Source - tested OK in 3.9
</pre>
+
* QT_GUI_LED_Indicator - tested OK in 3.9
 
+
* QT_GUI_Level_Gauge - tested OK in 3.9
If you're running Linux, then always do the following command after installing any library:
+
* QT_GUI_Message_CheckBox - tested OK in 3.9
<pre>sudo ldconfig</pre>
+
* QT_GUI_Toggle_Button - tested OK in 3.9
 
+
* QT_GUI_Toggle_Switch - tested OK in 3.9
You can now download the UHD FPGA Images for this installation.
 
<pre>
 
sudo uhd_images_downloader
 
</pre>
 
 
 
On Linux, udev handles USB plug and unplug events. The following commands install a udev rule so that non-root users may access the device.
 
<pre>
 
cd ~/uhd/host/utils
 
sudo cp uhd-usrp.rules /etc/udev/rules.d/
 
sudo udevadm control --reload-rules
 
sudo udevadm trigger
 
</pre>
 
 
 
The installation of UHD is now complete. At this point, connect the USRP to the host computer and run:
 
<pre>
 
uhd_usrp_probe
 
</pre>
 
 
 
== a dummy section ==
 
 
 
== a dummy section ==
 

Revision as of 15:30, 25 July 2020

"Recycle Bin": content we no longer link to that we may eventually just delete

Testing of QT GUI functions

Instrumentation

In 3.8

GUI Widgets

In 3.8


   AttributeError: module 'gnuradio.qtgui' has no attribute 'edit_box_msg'


Added in 3.9

  • QT_GUI_App_Background - tested OK in 3.9
  • QT_GUI_Az-El_Plot - tested OK in 3.9
  • QT_GUI_Compass - tested OK in 3.9
  • QT_GUI_Dial - tested OK in 3.9
  • QT_GUI_Dial_Gauge - tested OK in 3.9
  • QT_GUI_Digital_Number_Control - tested OK in 3.9
  • QT_GUI_Distance_Radar - tested OK in 3.9
  • https://wiki.gnuradio.org/index.php/QT_GUI_Eye_Sink - tested OK in 3.9
  • QT_GUI_Fast_Auto-Correlator_Sink - tested OK in 3.9
  • QT_GUI_Graphic_Item - tested OK in 3.9
  • QT_GUI_Graphic_Overlay_Sample_Source - tested OK in 3.9
  • QT_GUI_LED_Indicator - tested OK in 3.9
  • QT_GUI_Level_Gauge - tested OK in 3.9
  • QT_GUI_Message_CheckBox - tested OK in 3.9
  • QT_GUI_Toggle_Button - tested OK in 3.9
  • QT_GUI_Toggle_Switch - tested OK in 3.9