|
From: | Richard Bell |
Subject: | Re: [Discuss-gnuradio] Controlling File Sink |
Date: | Thu, 12 Mar 2015 14:18:15 -0700 |
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:
Richv/r,Would someone kindly recommend a way to do what I would like?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.
_______________________________________________ Discuss-gnuradio mailing list address@hidden https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Prev in Thread] | Current Thread | [Next in Thread] |