|
From: | Daniel Dekst |
Subject: | [Discuss-gnuradio] clear file_sink every minute |
Date: | Mon, 14 Feb 2011 15:14:27 +0800 (CST) |
Hi, All, I average symbols' magnitude over a packet and output the value to a file_sink. self.connect(self.symbol_filt, gr.file_sink(gr.sizeof_double*self._occupied_tones, "ofdm_rss_f.dat")) Although I output a value every packet, the file I got has many zeros. Suppose I'm using 64 subcarriers with BPSK. For a 400 bytes packet, I get 64 * 50 = 3200 zeros before I get the last 64 average values. Seems that although I do not output in my program explicitly, each time I consume 64 symbols there are 64 outputs of zeros to the file_sink. I can use Octave to read the binary file and extract the values that I need. But for a long time measurement, I may get memory problem for a large binary file. So I want to open another thread, extracting values every minute. But how could I safely clear the content of the file created by the file_sink while do not interrupt the recording. Thanks, Pei |
[Prev in Thread] | Current Thread | [Next in Thread] |