On 11/12/2014 02:54 PM, Staffan Bruce wrote:
Hello, Being limited in my programming skills, I would very much like to do the following in Gnuradio Companion: * Sample an input stream (from RTL-SDR) * Generate a trigger signal based on the input stream * If a trigger criterion is met, save/sink the data stream for a preset time and give the file a name based on time of acquisition (or similar) * Reset the flow and start all over.
The Tagged File Sink does most of what you're looking for. src -> trigger -> tagged file sink -> "timestamped" files
Getting the input stream is no problem and I believe I know how to generate the trigger signal, but starting a sink (with a new filename) for a preset time (number of samples is fine) based on this signal seems tricker (not to mention the file naming part). If anyone can provide suggestions for how to * start a new sink (new file) based on an integer signal shifting from 0 to 1 * automatically name each file sequence, sequential numbering is OK this would be very much appreciated! Many thanks in advance! Regards, Staffan _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio