(gnuradio)有什么方法可以使用“ python block”。成为来源?
我的ADC模块具有1 MHz采样率。 这是他的示例程序
我将给他一个40kHz载体信号作为模拟输入。我想将他收到的电压信号写入“ gnuradio”的“ python块”中。让他
output_items[0][:]=adc.readA1Volts()
,但是当我这样做时,它用尽了:
swig director method error: error detected when calling 'feval_p.eval'
有什么办法可以实现这一目标?
(我的英语不是很好,我翻译了Google,对不起)
I have an ADC module with 1 MHZ sampling rate.
Here is the URL of his sample program
I will give him a 40khz carrier signal as an analog input. I want to write the voltage signal he received into the "python block" of "GNURADIO". let his
output_items[0][:]=adc.readA1Volts()
But when I do this it runs out:
swig director method error: error detected when calling 'feval_p.eval'
Is there any way I can achieve this?
(I'm not very good in English, I translated it by Google, sorry)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
通常,是的。您可以在Python中编写GNU无线电源。
说“分配
output_items中的许多项目[0]
来自adc.reada1volts的值或值()
几乎不正确,可能是由于数组尺寸不匹配或类似的原因,因此您看到这
是对如何误解的 。写一个python块。
Generally, yes. You can write a GNU Radio source in Python.
That says "assign the many items in
output_items[0]
the value or values fromadc.readA1Volts()
, which is almost certainly not correct.Possibly, something throws an error here, maybe because of array size mismatch or similar, and hence that error you see arises.
I think this reflects a bit of misunderstanding on how to write a python block. The Official GNU Radio Tutorials might be the best place to start.
ADC.ReadA1Volts()是单个电压(点),它将读取ADC,我可以将其存储为矩阵,
例如:
然后由output_items [0],
例如:
这个想法正确吗?
我不知道他的输出形式是什么样的。
adc.readA1Volts() is a single voltage (POINT) that will read adc, I can store it as a matrix,
ex:
Then it is output by output_items[0],
ex:
Is this thought correct?
I don't know what his output form is like.