discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Loss of synchronization while creating new file


From: Marcus D. Leech
Subject: Re: [Discuss-gnuradio] Loss of synchronization while creating new file
Date: Tue, 16 Jul 2013 19:37:43 -0400
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16

On 07/16/2013 06:34 PM, rmsrms1987 wrote:
Hi Marcus,

Thank you for the prompt reply.  I have attached the two python programs
that have been written to do this type of acquisition.  From Snafoo.py the
only section of importance is the Rupdate.  Before any file is written, the
program checks the hard drive to make sure there is enough space to complete
the file.  If there is enough space, then the program initiates the data
collection program (rx.py).  The inputs to this class include the directory
to save to (self.indir), FIR filter coefficients (self.fr), and the file
size in seconds (self.fs).  Then the method 'run' is executed, which is a
function from the gr.top_block class.
After writing this, it seems like the problem can potentially be the
commands that are executed between files.  These command will take a brief
amount of time, but enough to cause a slight phase difference between files.
Do you think this may be the cause as well? If so, do you possibly have a
solution?

Thanks,
Robert

You're basically doing a complete "session reset" between each file--there's no way you can maintain phase coherence across that
  "singularity".

A *MUCH* better approach is to use GRC, with a file sink, perhaps to a FIFO, and then an external program that cuts your stream up
  into individual files.


--
Marcus Leech
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org




reply via email to

[Prev in Thread] Current Thread [Next in Thread]