Saving to file with a timestamp

I have a flowgraph working that I want to use to save data to a file. I
would like the file name to update each time, ideally with a time stamp
as
part of the name. Is this possible directly from GRC of will I need to
write
a block?

Mike

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

There’s been a thread on exactly that a few days ago [1].

Short version: maybe there’s something not too complex you can do in
GRC, but if you want to do something that looks like a program, you
might just want to program something :wink:

Greetings,
Marcus

[1]
http://lists.gnu.org/archive/html/discuss-gnuradio/2014-11/msg00154.html
[2]
http://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorials

On 11/22/2014 12:04 PM, Mike W. wrote:

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAEBAgAGBQJUcHBkAAoJEAFxB7BbsDrLB44H/Rb0pvvBHOcbJHndGFaiedaI
xrfzOAnzrmaqLOK5Qfr1UYLPDvZp+EOIEr5s2/jAQj5jkHkDQz/5/GPenHYqVRN1
nvrs+QJ70kSGgqDWjg4GAEo/rz1n3pmyqfPmErMi9J5rmcoPep6NA2xCek7SyHzm
AehN7fwX7L1y2zQMRIit3Q1pFrfzEeojS6KZsGqrJBL1/nMHqAoqU6lawruxtkL1
NViNr49Dtur6EXwf6ejv/ptMuojUNouMSyqg6s4KXQEu+b3tGPpW7jPRbWiuIzp0
+GHF6gvt6Ss1KBXkSRWDSqlYpkbl3J/b6/nNqDFmY8iiZjIyCKMt9JYUaN0y72E=
=AM87
-----END PGP SIGNATURE-----

On Sat, Nov 22, 2014 at 6:15 AM, Marcus Müller [email protected]
wrote:

Marcus

[1]
[Discuss-gnuradio] GRC, Recording chunks of spectrum triggered on input
[2]
http://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorials

There is the tagged_file_sink:

http://gnuradio.org/doc/doxygen/classgr_1_1blocks_1_1tagged__file__sink.html

This is an early implementation of using stream tags for controlling
things
like this, so you might want to use this as a guide.

Tom

On 11/22/2014 12:04 PM, Mike W. wrote:

I have a flowgraph working that I want to use to save data to a
file. I would like the file name to update each time, ideally with
a time stamp as part of the name. Is this possible directly from
GRC of will I need to write a block?

Mike

On 11/22/2014 6:04 AM, Mike W. wrote:

I have a flowgraph working that I want to use to save data to a file. I
would like the file name to update each time, ideally with a time stamp
as part of the name.

Hey, Mike,

I’ve used this for this same thing-

http://www.oz9aec.net/index.php/gnu-radio-blog/348-dynamic-file-names-in-gnu-radio-companion

Seems like a simple solution for your problem.

Later,
George

You can also use some Python string concatenation to add a Timestamp to
your file name in GRC. GRC is actually quite liberal in what it will "
allow" you to add in this way.

On Saturday, November 22, 2014, Tom R. [email protected] wrote:

might just want to program something :wink:
There is the tagged_file_sink:

+GHF6gvt6Ss1KBXkSRWDSqlYpkbl3J/b6/nNqDFmY8iiZjIyCKMt9JYUaN0y72E=


Very Respectfully,

Dan CaJacob