discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Saving block status


From: Marcus D. Leech
Subject: Re: [Discuss-gnuradio] Saving block status
Date: Sat, 14 Jan 2012 10:36:24 -0500
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16

On 01/14/2012 09:42 AM, André Selva wrote:
I think that making the buffer larger wouldn't help much.

My problem is: I have an interleaver, where i pass my data through. This interleaver is made of several shifters, of different sizes. The input goes through the shifters in an especific order (given by keying), and the output is formed by keying the shifters output in a different order. The problem is that if the buffer finishes and i lost the data inside the shifters, i'll lost data. So i need to conservate this structures among each bufferized execution of the block.

Is that possible? What i think that may be helpful is some sort of global structure where i can store this status.

Best Regards,
It's C++, when you instantiate the block, you can allocate whatever structures you want to maintain state across invocations of your work() function. Just make sure that your destructor deallocates said state maintaining structures.



--
Marcus Leech
Principal Investigator
Shirleys Bay Radio Astronomy Consortium
http://www.sbrac.org





reply via email to

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