mhostetter / gr-detector Goto Github PK
View Code? Open in Web Editor NEWGNU Radio OOT Module containing various detectors and synchronizes
GNU Radio OOT Module containing various detectors and synchronizes
This is the detector-write-a-block package meant as a guide to building out-of-tree packages. To use the detector blocks, the Python namespaces is in 'detector', which is imported as: import detector See the Doxygen documentation for details about the blocks available in this package. A quick listing of the details can be found in Python after importing by using: help(detector)
I'm creating module multiplier, after that building and install the block named multiplier_ff with these instruction allowed by the site https://wiki.gnuradio.org/index.php/Guided_Tutorial_GNU_Radio_in_Python :
gr_modtool newmod multiplier
cd gr-tutorial
ls
gr_modtool add -t sync -l python
Ran 1 test in 0.001s
OK
After that, build and install projhect with these instructions:
cd gr-multiplier
mkdir build
cd build
cmake ..
make
sudo make install
sudo ldconfig
However when i run gnuradio-companion , there is an error:
<<< Welcome to GNU Radio Companion 3.10.8.0-rc2 >>>
Block paths:
/usr/local/share/gnuradio/grc/blocks
Check: /usr/local/share/gnuradio/grc/blocks/multiplier_multiplier_ff.block.yml
FlowGraph Error: mapping values are not allowed here
in "/usr/local/share/gnuradio/grc/blocks/multiplier_multiplier_ff.block.yml", line 17, column 16
Please help me to solve this problem and make this bloc available in gnuradio
Hello,
I created a block python named«energy_detection_ff» and it is displayed correctly in gnuradio, However when i run and execute code ; it shows an error :
from gnuradio import detection5
File "/usr/local/lib/python3.8/dist-packages/gnuradio/detection5/init.py", line 23, in
from .energy_detection_ff import energy_detection_ff
ModuleNotFoundError: No module named 'gnuradio.detection5.energy_detection_ff'
And the file of init.py is shown as below :
'''
This is the GNU Radio DETECTION5 module. Place your Python package
description here (python/init.py).
'''
import os
try:
# this might fail if the module is python-only
from .detection5_python import *
except ModuleNotFoundError:
pass
from .energy_detection_ff import energy_detection_ff
Please help me to solve this problem, i asked if i shoud edit the file init.py, I’m so gratefull to help me
Hello,
these instruction :
gr_modtool newmod energy6
ls
gr_modtool add -t decimator -l python
GNU Radio module name identified: recherche
Enter name of block/code (without module name prefix): energy6_ff
Language: Python
Block/code identifier: energy6_ff
Please specify the copyright holder:
Enter valid argument list, including default arguments:
samples, Pfa
Add Python QA code? [Y/n] y
Adding file 'python/recherche/detector_ff.py'...
Adding file 'python/recherche/qa_detector_ff.py'...
Editing python/recherche/CMakeLists.txt...
Adding file 'grc/recherche_detector_ff.block.yml'...
Editing grc/CMakeLists.txt...
After that, I’m editing file ‘energy6_ff.py by adding your code. Also I’m editing’energy6_detector6_ff.block.yml’ as below :
arameters:
inputs:
outputs:
file_format: 1
After that, I build and install project :
mkdir build
cd build
cmake ..
make
sudo make install
sudo ldconfig
Finally, I run gnuradio-comapnion and the windows shows :
However, this block is disabled i'm not able to connect it with other blocks, I'm so gratefull if you can help me to solve this problem, I ask if if i should edit other files such as: qa_detector6_ff.py and init.py
Best Regards
Hello,
I created a block python named«energy_detection_ff» and it is displayed correctly in gnuradio, However when i run and execute code ; it shows an error :
from gnuradio import detection5
File "/usr/local/lib/python3.8/dist-packages/gnuradio/detection5/init.py", line 23, in
from .energy_detection_ff import energy_detection_ff
ModuleNotFoundError: No module named 'gnuradio.detection5.energy_detection_ff'
And the file of init.py is shown as below :
Please help me to solve this problem, i asked if i shoud edit the file init.py, I’m so gratefull to help me
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.