Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Data not written to filesink in gnuradio

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?

like image 488
Ali Iqbal Avatar asked Oct 28 '25 16:10

Ali Iqbal


1 Answers

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.

like image 189
Manos Avatar answered Oct 30 '25 13:10

Manos



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!