This. There's a fine line between "stuff that you'd want to adapt
from an example" and "stuff that when you write its specification
down already looks very much like a program". If you're in the
latter case, well, write a program (in that case, a GNU Radio
block).
As Marcus said, there's a lot of tutorials; I'd recommend the
official Guided Tutorials from http://tutorials.gnuradio.org ,
which will explain how to do that.
Best regards,
Marcus
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
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
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
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
|