On Mon, Sep 19, 2016 at 6:57 AM, Hasini Abeywickrama <[email protected]> wrote:
> Hi Marcus, > > That's what I'm currently doing. It's not very efficient as I have to > constantly check the file size. If I can have a counter that is increments > each time an FFT is written to the file by the flow graph I would be able > to trigger an event based on the counter value. That was my concern. > > Regards, > Hasini > > On Sep 19, 2016, at 3:29 PM, Marcus Müller <[email protected]> > wrote: > > If you need to do that externally, I'd just watch the file size and divide > it by the item size (4B per floating point number) and by the FFT length. > > > Best regards, > > Marcus > > On 09/18/2016 11:21 PM, Hasini Abeywickrama wrote: > > Hi Marcus, > > It's like I need to start reading and processing the file after a certain > number of FFTs are being written to the file. For that I would need to > maintain a counter and I'm trying to figure out how to do it. > > Regards, > Hasini > > You can do this with the head block. It let's N number of items through and then stops the flowgraph. Set N to your certain number and then the file will have N FFTs. > > On Mon, Sep 19, 2016 at 2:58 PM, Marcus Müller <[email protected]> > wrote: > >> What would you need that counter for? There's the 1/(FFT length) fixed >> relation between samples processed and numbers of FFTs done, so this is >> pretty much a redundant piece of info, but maybe I'm just missing the use >> case. >> >> Best regards, >> >> Marcus >> >> On 09/18/2016 10:23 PM, Hasini Abeywickrama wrote: >> >> Hi all, >> >> I have a GNU Radio flowgraph which uses a USRP to receive a signal, >> converts it to log power FFT and then writes the result to a file, using >> File Sink. I want to have a counter which increments with each FFT written >> to the file. >> >> Is there a way of maintaining and increasing count of the FFTs written to >> the file, while the flowgraph is still running? >> >> >> _______________________________________________ >> Discuss-gnuradio mailing >> [email protected]https://lists.gnu.org/mailman/listinfo/discuss-gnuradio >> >> _______________________________________________ Discuss-gnuradio mailing >> list [email protected] https://lists.gnu.org/mailman/ >> listinfo/discuss-gnuradio > > > _______________________________________________ > Discuss-gnuradio mailing list > [email protected] > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio > >
_______________________________________________ Discuss-gnuradio mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
