agrim9 / fhss_gnuradio Goto Github PK
View Code? Open in Web Editor NEWBuilding a block to implement FHSS in GNUradio
Building a block to implement FHSS in GNUradio
Ubuntu 16.04 64-bit, GNU Radio Companion 3.7.9
When creating a demod block, an error message is given. For demod_64:
Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/ActionHandler.py", line 348, in _handle_action self.get_flow_graph().update() File "/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py", line 403, in update self.create_labels() File "/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/Element.py", line 78, in create_labels for child in self.get_children():child.create_labels() File "/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py", line 212, in create_labels markups = [param.get_markup() for param in self.get_params() if param.get_hide() not in ('all', 'part')] File "/usr/lib/python2.7/dist-packages/gnuradio/grc/python/Param.py", line 170, in get_hide lambda p: ' '.join([p._type, p._nports]), self.get_parent().get_ports()) File "/usr/lib/python2.7/dist-packages/gnuradio/grc/python/Param.py", line 170, in <lambda> lambda p: ' '.join([p._type, p._nports]), self.get_parent().get_ports()) TypeError: sequence item 0: expected string, instance found Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py", line 150, in _handle_window_expose self._flow_graph.draw(gc, self._pixmap) File "/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py", line 372, in draw element.draw(gc, window) File "/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py", line 318, in draw window.draw_drawable(gc, self.horizontal_label, 0, 0, x+BLOCK_LABEL_PADDING, y+(self.H-self.label_height)/2, -1, -1) AttributeError: 'Block' object has no attribute 'horizontal_label'
For demod_8:
Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/ActionHandler.py", line 348, in _handle_action self.get_flow_graph().update() File "/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py", line 403, in update self.create_labels() File "/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/Element.py", line 78, in create_labels for child in self.get_children():child.create_labels() File "/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py", line 212, in create_labels markups = [param.get_markup() for param in self.get_params() if param.get_hide() not in ('all', 'part')] File "/usr/lib/python2.7/dist-packages/gnuradio/grc/python/Param.py", line 170, in get_hide lambda p: ' '.join([p._type, p._nports]), self.get_parent().get_ports()) File "/usr/lib/python2.7/dist-packages/gnuradio/grc/python/Param.py", line 170, in <lambda> lambda p: ' '.join([p._type, p._nports]), self.get_parent().get_ports()) TypeError: sequence item 0: expected string, instance found Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/DrawingArea.py", line 150, in _handle_window_expose self._flow_graph.draw(gc, self._pixmap) File "/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/FlowGraph.py", line 372, in draw element.draw(gc, window) File "/usr/lib/python2.7/dist-packages/gnuradio/grc/gui/Block.py", line 318, in draw window.draw_drawable(gc, self.horizontal_label, 0, 0, x+BLOCK_LABEL_PADDING, y+(self.H-self.label_height)/2, -1, -1) AttributeError: 'Block' object has no attribute 'horizontal_label'
EOF
Sear Sir,
I created a block in Python using these instructions: (module is Energy and block is Energy_ff)
gr_modtool newmod Energy
cd gr-Energy
ls
cd gr-Energy
gr_modtool add -t sync -l python
Taking accout that i open Enery_ff.py and i change my code and i save it
after that i build and install project
cmake ../
make
sudo make install
sudo ldconfig
Generating and installing are done successfully:
-- Installing: /usr/local/share/gnuradio/grc/blocks/Energy_detection.block.yml
Finally i run gnu radio, this bloc is not able to be created and the windows show this error:
column 16
<<< Welcome to GNU Radio Companion 3.10.8.0-rc2 >>>
Block paths:
/usr/local/share/gnuradio/grc/blocks
Loading: "/home/crm/x310_rx_v3.grc"
Check: /usr/local/share/gnuradio/grc/blocks/Energy_detection.block.yml
FlowGraph Error: mapping values are not allowed here
in "/usr/local/share/gnuradio/grc/blocks/Energy_detection.block.yml", line 17, column 16
Done
Loading: "/home/crm/x310_rx_v1.grc"
Check: /usr/local/share/gnuradio/grc/blocks/Energy_detection.block.yml
FlowGraph Error: mapping values are not allowed here
in "/usr/local/share/gnuradio/grc/blocks/Energy_detection.block.yml", line 17, column 16
Done
Loading: "/home/crm/x310_rx_v2.grc"
Check: /usr/local/share/gnuradio/grc/blocks/Energy_detection.block.yml
FlowGraph Error: mapping values are not allowed here
in "/usr/local/share/gnuradio/grc/blocks/Energy_detection.block.yml", line 17, column 16
Done
How can i solve this problem please
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.