[Top][All Lists]

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

Re: [Discuss-gnuradio] Controlling File Sink

From: Richard Bell
Subject: Re: [Discuss-gnuradio] Controlling File Sink
Date: Thu, 12 Mar 2015 14:18:15 -0700


I'm not sure how to do what you're saying. Can you elaborate with an example?


On Thu, Mar 12, 2015 at 11:42 AM, <address@hidden> wrote:

Have your packet detector set the filename on the filesink to "/dev/null" when you don't want anything recorded, and to your output filename when you do, and use the "append" option.





On 2015-03-12 14:36, Richard Bell wrote:

Hello all,

In GRC, I've set up a packet detector that is working using the Header Payload Demux block. Unexpectedly, however, it seems the payload output port does not go silent when no header is detected. It outputs zeros, which the file sink block I have connected to that port then stores.

I've attached a screenshot of my flowgraph. The top row generates the packets. The middle row adds zeros between packets, to give the header payload demux something to do. The third row detects the packets, strips the header and sends the payload out to a file sink.
I would like the payload output port to be quiet when no header is detected, or I would like a way to control what the file sink stores. Tagged File Sink is not what I'm looking for, because it creates a new file every time a tag is detected.

Would someone kindly recommend a way to do what I would like?


Discuss-gnuradio mailing list

reply via email to

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