教学平台工作总结

gnuradio各文件之间的关系:

C++算法模块 --> .xml文件 --> .grc --> 流图 --> .py

grc的.xml文件路径:/usr/local/share/gnuradio/grc/block
参考示波器、频谱仪、ais模块的.xml文件完成了AIS的信息显示模块。

教学平台的.xml文件路径:KZ-SDR-IDE1.4.1/sdk/grc/自定义/组件。

使用eigen库来进行矩阵处理。

gnuradio流图模板文件

文件名:flow_graph.tmpl
路径:gnuradio-3.7.11/grc/core/generator

CMakeLists.txt

记得在CMakeLists.txt的Complier specific setup部分添加:
if(CMAKE_COMPILER_IS_GNUCXX AND NOT WIN32)
add_definitions(-fvisibility=hidden)
add_definitions(-std=c++11)
endif()

使用GNURadio编写模块的方法

中文版开发方法
英文版开发方法

  1. Create (do this once per module): gr_modtool create MODULENAME
  2. Add a block to the module: gr_modtool add BLOCKNAME
  3. Create a build directory: mkdir build/
  4. Invoke the make process: cd build && cmake <OPTIONS> ../ && make (Note that you only have to call cmake if you’ve changed the CMake files) cmake …
  5. Invoke the testing: make test or ctest or ctest -V for more verbosity
  6. Install (only when everything works and no tests fail): sudo make install. Remember to call gr_modtool makexml BLOCKNAME or gr_modtool makeyaml BLOCKNAME, to generate and if needed modify yaml file for your blocks before installing the module.
  7. Ubuntu users: reload the libs: sudo ldconfig
  8. Delete blocks from the source tree: gr_modtool rm REGEX
  9. Disable blocks by removing them from the CMake files: gr_modtool disable REGEX
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值