Morning everyone, there was a question yesterday over on the USRP list about being able to record to 5 minutes, rest for an hour, then record again.
I had a partial solution so I added a block I'd been wanting to add for some time to gr-filerepeater (pybombs or github). There's now a state timer block
that'll generate a message based on block-specified timing. Can be used for anything, just produces a msg with a "state" meta key set to 1 or 0 depending on the timer triggers. Can trigger on a trigger
time (on/off), cycle time (longer time before starting the trigger cycle again), etc. gr-filerepeater also has a new file sink block
I've added in the past couple of weeks specifically to pair with the problem. You can feed the timer msg out to the new sink msg
in to control write/close. The new block will then key off the state (1/0) in the msg metadata
and start/stop writing to a file. You can specify a directory and a
base file name, then every time a new file write is started it'll append
a timestamp. Can also limit on size if you wanted to.
Enjoy and as always let me know if/when you run into any issues.