Re: [Discuss-gnuradio] Losing samples in the flowgraph

2011-07-26 Thread Michael Höin
I solved the problem! (after 10 days :-)) I had not used the "noutput_items" variable in the "general_work" environment. so my blocks produced uncontrolled outputsamples :-( Sorry about the confusion I produced. Thanks to all who helped! ___ Discuss-g

Re: [Discuss-gnuradio] Losing samples in the flowgraph

2011-07-26 Thread Martin Braun
On Sun, Jul 24, 2011 at 01:07:36PM +0200, Michael Höin wrote: > I think my program loses samples. If I choose for the input of my > flowgraph a file source with a throttle (Rate = 2 MSamples) and for the > output a vector sink, I see in the output vector that samples are loss > (every run differnet

Re: [Discuss-gnuradio] Losing samples in the flowgraph

2011-07-26 Thread Michael Höin
Hi Marcus Thanks for reply. > In the example you gave earlier, using a file-source, you run the > flow-graph for 13 seconds, then call tb.stop(), then harvest the vector > sink. You then make the observation that there are "missing samples". > Are you actually comparing samples, or simply observ

Re: [Discuss-gnuradio] Losing samples in the flowgraph

2011-07-25 Thread Marcus D. Leech
On 07/25/2011 02:30 PM, Höin Michael (hoim) wrote: I labeled my block "ofdm_symbol_cutter", but he is not one out of the standard OFDM blocks. I wrote this block, because I want to isolate the sample loss problem. I tested the flow with UHD source and the file source, so it's not only a simula

Re: [Discuss-gnuradio] Losing samples in the flowgraph

2011-07-25 Thread hoim
Hi all > You realize that you never mentioned in the previous email that you were > using the OFDM blocks. I thought something was fundamentally broken in > gnuradio... I labeled my block "ofdm_symbol_cutter", but he is not one out of the standard OFDM blocks. I wrote this block, because I want

Re: [Discuss-gnuradio] Losing samples in the flowgraph

2011-07-25 Thread Josh Blum
On 07/25/2011 01:20 AM, Michael Höin wrote: > Thanks for all replies. > >> This seems very unexpected. >> Can you attach a python script that demonstrates the problem? > > This is the workflow with the problem: > www.zhaw.ch/~hoim/Flow.py > You realize that you never mentioned in the previous

Re: [Discuss-gnuradio] Losing samples in the flowgraph

2011-07-25 Thread Michael Höin
Thanks for all replies. > This seems very unexpected. > Can you attach a python script that demonstrates the problem? This is the workflow with the problem: www.zhaw.ch/~hoim/Flow.py With the command: diff -u test1.txt test.txt | diffstat after two runs I searched in the vector-sinks the differe

Re: [Discuss-gnuradio] Losing samples in the flowgraph

2011-07-24 Thread Marcus D. Leech
On 07/24/2011 02:03 PM, Josh Blum wrote: This seems very unexpected. Can you attach a python script that demonstrates the problem? I used this command: sudo sysctl -w net.core.rmem_max=5000 Are you resizing the udp socket buffer? -josh Given that the flow-graph in question uses a file

Re: [Discuss-gnuradio] Losing samples in the flowgraph

2011-07-24 Thread Josh Blum
On 07/24/2011 04:07 AM, Michael Höin wrote: > Hi all > > I think my program loses samples. If I choose for the input of my > flowgraph a file source with a throttle (Rate = 2 MSamples) and for the > output a vector sink, I see in the output vector that samples are loss > (every run differnet dat

[Discuss-gnuradio] Losing samples in the flowgraph

2011-07-24 Thread Michael Höin
Hi all I think my program loses samples. If I choose for the input of my flowgraph a file source with a throttle (Rate = 2 MSamples) and for the output a vector sink, I see in the output vector that samples are loss (every run differnet datas were loss). The CPU usage is only 40 Percent. If I red