If you want strict control over the file-size, then you'll likely need
to write your own block.
It should perhaps NOT come as a surprise that there aren't examples that
cover every possible use case, since the field-of-endeavor is
essentially-infinite, and there's only a finite number of entities
working on this stuff....
The www.gnuradio.org [1] website has lots of tutorials, and info on
writing your own blocks...
On 2017-01-16 16:19, BuRaK wrote:
> Thanks Marcus,
> However, I would like to strictly limit the samplesize. If I use a
> controlport can I achieve this.
> Is there an example that I can refer to? Because I did not quite get how to
> do it.
> Thanks
>
> On Tuesday, January 17, 2017 12:09 AM, "mle...@ripnet.com"
> <mle...@ripnet.com> wrote:
>
> There are a whack of approaches to doing this.
> The filename parameter of the filesink block is runtime changeable.
> You could have an external process using controlport or xmlrpc to change this
> setting (from a variable) at regular intervals. The existing file will be
> closed, and a new one started under whatever name you give it.
> Or, you could start with the filesink block, and write a new one that
> implements your naming policy as you see fit.
>
> On 2017-01-16 15:39, BuRaK wrote:
>
>> Hi all,
>>
>> I am trying to do a simple task but could not decide how to approach and do
>> it.
>>
>> I would like to collect data from usrp continuously. The filesize will be
>> huge and what I would like to do is say if 10 minutes passed (or xxx samples
>> are collected)
>> close file1.dat and open file2.dat and keep writing to that one. But I do
>> not want to interrupt dataflow or lose any single sample.
>>
>> Would it be possible to do this through GRC or should I write a new block?
>> It would be great if somebody can help me through this.
>> Thank you in advance.
>> _______________________________________________
>> Discuss-gnuradio mailing list
>> Discuss-gnuradio@gnu.org
>> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Links:
------
[1] http://www.gnuradio.org
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio