discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Getting the Count of FFTs


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] Getting the Count of FFTs
Date: Mon, 19 Sep 2016 07:10:32 -0700
User-agent: K-9 Mail for Android

But how would that triggering work, and what would be triggered?
There's no other way than looking at the file itself to know how much has been written already; this boils down to the very Unix discussion of how atomic write() system calls should be in effect.

Best regards,
Marcus

Am 19. September 2016 03:57:59 GMT-07:00, schrieb Hasini Abeywickrama <address@hidden>:
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 <address@hidden> 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

On Mon, Sep 19, 2016 at 2:58 PM, Marcus Müller <address@hidden> 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 list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
_______________________________________________ Discuss-gnuradio mailing list address@hidden https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]