1、Linux下安装GNURadio
参考:
2、在GNURadio下写自己的Python模块
(1)构建OTT文件夹
$ gr_modtool newmod tutorial
Creating out-of-tree module in ./ Done.
Use 'gr_modtool add' to add a new block to this currently empty module.
其中:gr-tutorial为模块所在文件夹。
(2)向文件夹中添加模块
gr-tutorial$ gr_modtool add -t sync -l python
GNU Radio module name identified: tutorial
Language: Python
Enter name of block/code (without module name prefix): multiply_py_ff
Block/code identifier: multiply_py_ff
Enter valid argument list, including default arguments: multiple
Add Python QA code? [Y/n] y
Adding file 'Python/multiply_py_ff.py'...
Adding file 'Python/qa_multiply_py_ff.py'...
Editing
Adding file 'grc/tutorial_multiply_l'...
Editing
可以通过以下代码查询add用法。
gr-tutorial$ gr_modtool help add
(3)需要修改的文件
本文发布于:2024-01-28 08:19:17,感谢您对本站的认可!
本文链接:https://www.4u4v.net/it/17064011626062.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
留言与评论(共有 0 条评论) |