Data not written to filesink in gnuradio

断了今生、忘了曾经 提交于 2019-12-23 17:27:19

问题


Here is my simple flow graph.

File Source > Throttle > File Sink

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?


回答1:


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.



来源:https://stackoverflow.com/questions/31310871/data-not-written-to-filesink-in-gnuradio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!