|
From: | Marcus D. Leech |
Subject: | Re: [Discuss-gnuradio] Creating incremental data files during a continuous operation. |
Date: | Thu, 20 Jun 2013 15:54:32 -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 06/20/2013 03:46 PM, Burak TUYSUZ wrote:
There's a set_file() method or some such on the file sink. Just call that method any time you want to change the filename.Thanks Marcus for the information. However, I did not understand at which point I should do that change.Should I use gr_head so each file contains exact amount of samples? Is there an example that I can refer to?
Now, if you're doing this in GRC, it's a bit trickier, because GRC isn't "procedural". But for example, judicous use of a probe block operating at a very low sample rate, and a helper function, could allow you to change the filename at the rate of the probe
block. -- Marcus Leech Principal Investigator Shirleys Bay Radio Astronomy Consortium http://www.sbrac.org
[Prev in Thread] | Current Thread | [Next in Thread] |