discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] understanding decimator block


From: Tom Rondeau
Subject: Re: [Discuss-gnuradio] understanding decimator block
Date: Tue, 4 Aug 2015 10:38:50 -0400

On Mon, Aug 3, 2015 at 9:09 AM, <address@hidden> wrote:
hello everyone,
i'm trying to understand a decimator block and how to write such a block by myself. for testing and learning purposes only i have written a simple block. the c++-code you can see in "cpp_code.png" and the python qa-code you can see in "qa_python.png". there is an input vector (1,4,3,9,5,2,4,1,6) and it should calculate the sum of every three numbers (1+4+3=8, 9+5+2=16, ...)
everytime i get a segmentation fault error message. do anybody know why?
 
thanks for your help!
 
 
alphonso

The best thing to do is put debug points or print out information about your block's work function. See what you values of noutput_items, i, and k are through the loop, and see where it crashes on you. Generally, these problems comes from a mishandling of the buffer boundary conditions.

Tom


reply via email to

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