|
From: | Marcus Müller |
Subject: | Re: [Discuss-gnuradio] GRC, Recording chunks of spectrum triggered on input signal level |
Date: | Wed, 12 Nov 2014 21:54:41 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 |
Hi Staffan, I think that you'll find the things you describe can be best noted more or less algorithmically (which you have already done!); and thus, I'd think it's easier to actually write that specific sink you need than to do what you want to do in GRC (I must admit I can't think of a way of doing that in GRC... it's just so un-graphically-clickable ;) ). Now, this might sound like bad news to you, but I assure you that writing a python block is not as hard as it might sound to you; just follow the first few of our new guided tutorials [1] and you might write your own sink that writes each chunk of samples -- as your detector tagged it -- to a new file. Greetings, and happy hacking, Marcus [1]http://gnuradio.org/redmine/projects/gnuradio/wiki/Guided_Tutorials On 11/12/2014 08: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. 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 |
[Prev in Thread] | Current Thread | [Next in Thread] |