数据未写入gnuradio中的文件接收器 [英] Data not written to filesink in gnuradio

查看:372
本文介绍了数据未写入gnuradio中的文件接收器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的简单流程图.

文件源>节气门>文件接收器

File Source > Throttle > File Sink

当File Source的重复值打开时,它可以正常工作.当我关闭File Source的重复值时,不会写入任何内容.可能是什么原因?

It works fine when the repeat value of File Source is on. When i turn off the repeat value of File Source, nothing gets written. what could be the reason for this?

推荐答案

在块之间缓冲GNU Radio调度程序可能是导致问题的原因.特别是,如果节气门的采样率很慢. 此外,文件接收器块使用fwrite()函数,该函数还执行一些缓冲以提高吞吐量.您可以通知文件接收器块立即刷新fwrite()缓冲区,并在gnuradio-companion GUI中将Unbuffered参数设置为On.

Buffering of the GNU Radio scheduler between the blocks may be the cause of your problem. Especially, if the sampling rate of the throttle is slow. Furthermore, the file sink block uses the fwrite() function that also performs some buffering to increase the throughput. You can inform the file sink block to flush immediately the fwrite() buffer, setting the Unbuffered parameter to On from the gnuradio-companion GUI.

这篇关于数据未写入gnuradio中的文件接收器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆