i dont want to confuse, antenbach seems to have it nailed...
but since you are getting your data and processing it to get the power spectrum "on the go" maybe you'd have a nicer program if you use a queue to extract your data from the reception loop, and then queue out the new data and append it to the old data to enhance the power spectrum...?
or, as i said it's better to just leave it as it is...
oh, and geovane dont forget the kudos! (see antenbach's signature..)