Search code examples
filesignalsgnuradiosink

How does GNU Radio File Sink work?


I want to know how the file sink in GNU Radio works. Does it receive a signal and then write it to the file, and while it's being written signal receiving is not done?

I just want to make sure if some portion of the signal is lost without being written to the file because of the time taken for writing.

Any help or reading material regarding this would be very much appreciated.


Solution

  • Depending the sampling rate of the device, writing samples to file without discontinuities may be impossible.

    Instead writing to disk, you can write the samples in a ramdisk. Ramdisk is an abstraction of file storage, using the RAM memory as storage medium. The great advantage of the ramdisk is the very fast read/write data transfers. However, the file size is limited somehow by the amount of RAM memory that the host has.

    Here is a good article that will help you to create a ramdisk under Linux. I am sure that you will easily find a guide for Windows too.