Creating incremental data files during a continuous operation

Hi,

I just wonder if there is a method built in GNURadio that will allow me
to
create incremental files (1.dat, 2 dat …) instead of a huge file in
continuous operation.

I did implement a similar structure by taking the data in buffers and
creating files afterwards. However I would like to know if there are
other
ways of doing this (without dropping samples or stopping the graph).

Thanks in advance
Burak

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?

On Thu, Jun 20, 2013 at 3:17 PM, Marcus D. Leech [email protected]
wrote:

creating files afterwards. However I would like to know if there are other

Discuss-gnuradio mailing list
[email protected]
Discuss-gnuradio Info Page


Burak TUYSUZ
Ph.D., Graduate Teaching Assistant
The Pennsylvania State University
Electrical Engineering
218 Electrical Engineering East Building
University Park, PA 16802

CONFIDENTIAL
This e-mail message and any included attachments are confidential,
intended
only or the recipient named above, and may contain information that is
privileged and exempt from disclosure under applicable law. If you have
received this message in error, or are not the named recipient, please
immediately notify the sender by return e-mail and delete all copies of
this message.

On 06/20/2013 03:46 PM, Burak TUYSUZ wrote:

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?

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.

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 L.
Principal Investigator
Shirleys Bay Radio Astronomy Consortium

On 06/20/2013 03:15 PM, Burak TUYSUZ wrote:

Thanks in advance
Burak


Discuss-gnuradio mailing list
[email protected]
Discuss-gnuradio Info Page
You can change the output filename of the file sink at runtime.