bokehgui_for_cortexlab
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
bokehgui_for_cortexlab [2025/05/16 16:39] – cmorin | bokehgui_for_cortexlab [2025/05/16 16:59] (current) – cmorin | ||
---|---|---|---|
Line 115: | Line 115: | ||
You can also type '' | You can also type '' | ||
- | So first, add a Waterfall Sink right at the beginning of the flowgraph, connected to UHD USRP Source block, and fill in its parameters by double clicking on it. The main one to change here is the '' | + | So first, add a Waterfall Sink right at the beginning of the flowgraph, connected to UHD USRP Source block, and fill in its parameters by double clicking on it. The main one to change here is the '' |
{{ : | {{ : | ||
- | Now add a Time Sink at the end, | + | Now add a '' |
{{ : | {{ : | ||
+ | That's it for the plots | ||
+ | We can now add the '' | ||
+ | These can be placed anywhere in the canvas. | ||
+ | Before opening the block' | ||
+ | Now fill in the parameters as follow: | ||
{{ : | {{ : | ||
{{ : | {{ : | ||
+ | |||
+ | The very last step before execution is to set the flowgraph' | ||
{{ : | {{ : | ||
+ | |||
+ | You can now press play to run the modified flowgraph. | ||
+ | You will probably encounter this warning window, just ignore it and hit OK: | ||
{{ : | {{ : | ||
+ | If you had done these modifications on your own computer, simply hit the '' | ||
+ | And execute it, just like we did in previous tutorial. | ||
- | {{ : | ||
+ | ## Visualize your signal | ||
- | < | + | Now that the bokehgui flowgraph is running, you can access the visualization tool available at the following address on your local computer internet browser |
- | # From node 14 | + | |
- | root@mnode14:~/ / | + | |
- | </ | + | |
- | {{ : | + | |
< | < | ||
- | # From node 14 | + | http://localhost: |
- | root@mnode14:~/ /cortexlab/ | + | |
</ | </ | ||
+ | You should see our two sliders, Waterfall, and an empty Time plot. | ||
+ | That one is empty because there are no decoded bits as we haven' | ||
- | On the node, you will find two files, the GRC flowgraph and the python executable of the project. | + | {{ : |
- | {{ : | + | You can play with the gain silder to see what that changes. |
- | You can ran the python executable with the following command | + | Let's now start the transmitter: |
< | < | ||
- | root@mnode17:~# ./cxlb_bokehgui.py | + | # From node 14 |
+ | root@mnode14:~/ / | ||
</ | </ | ||
- | **Remarq** : The sample rate is set at 35kHz by default but can be modified by updating | + | You now should see something displayed in the Time Sink, and prints in the console resembling what we had in previous tutorials. If not, make sure you haven't changed |
+ | {{ : | ||
- | Now that the bokehgui flowgraph | + | You may not see much difference in the waterfall display (maybe a line once in a while) because packets are not transmitted very often and there is a high chance the Waterfall display misses them. |
+ | To ensure you can see it, you can change | ||
< | < | ||
- | http://localhost: | + | # From node 14 |
+ | root@mnode14:~/ /cortexlab/homes/ | ||
</ | </ | ||
- | All time, frequency | + | Note that this will probably flood your console |
- | + | To remedy that, simply stop the transmitter | |
- | ## Start the OFDM transmission | + | |
- | + | ||
- | To start the OFDM transmission, you can access | + | |
- | + | ||
- | < | + | |
- | username@srvairlock: | + | |
- | </ | + | |
- | + | ||
- | Then you can run the following command to start the OFDM transmitter | + | |
- | + | ||
- | < | + | |
- | root@mnode16: | + | |
- | </ | + | |
- | + | ||
- | ## Visualize your signal | + | |
- | + | ||
- | You can go back to your browser | + | |
- | {{ :signal_vis.png?600 |}} | + | Feel free to play with the sliders and displays. |
- | ## What's next ? | + | ## Conclusion |
Congratulations, | Congratulations, |
bokehgui_for_cortexlab.1747406343.txt.gz · Last modified: 2025/05/16 16:39 by cmorin