将Python块与CPP块连接起来使Gnuradio停止

发布于 2025-01-18 06:35:16 字数 634 浏览 7 评论 0原文

我有两个gnuradio oot块。当相互连接时,我的流程图几乎立即停止而没有显示任何错误,如下所示。

Generating: '/root/top_block.py'

Executing: /usr/bin/python -u /root/top_block.py

*Two or three logs that match starting procedure of both blocks*

>>> Done

当两个块断开或单独使用时,一切正常。

第一个是用python编写的,输出out_sig = [np.complex64]

第二个用C ++和Input io_signature :: make(1,1,1,1,1,1,1,1,1,1 sizeof(gr_complex))< /代码>

我在将两个OOT块与PMT消息连接起来时也经历了类似的问题,原因是PMT消息的另一种类型作为输出/输入。这就是为什么我要查看要交换的数据类型的原因。但是,它说在这里 因此,也许我不是朝正确的方向看。

I have two gnuradio OOT blocks. When connected to each other, my flowgraph stops almost immediately without displaying any error, as follow.

Generating: '/root/top_block.py'

Executing: /usr/bin/python -u /root/top_block.py

*Two or three logs that match starting procedure of both blocks*

>>> Done

When the two blocks are disconnected, or used separately, everything works fine.

The first one is written in python and output out_sig=[np.complex64]

The second one is written in C++ and input io_signature::make(1, 1, sizeof(gr_complex))

I have experienced a similar problem while connecting two OOT blocks with pmt messages, and the reason was a different type of pmt message as output/input. This is why I'm looking at the type of data being exchanged. However it says here that gr_complex and numpy.complex64 are equivalent so maybe I'm not looking in the right direction.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文