|
From: | Anderson, Douglas J. |
Subject: | Re: [Discuss-gnuradio] Can you spot the error in the python basic block? |
Date: | Fri, 13 Mar 2015 20:06:23 +0000 |
It seems like "consume_each" is not consuming the input buffer correctly. I stepped through the general_work function with a debugger and the input_items are being properly copied
to output_items, consume_each and return are both being passed the correct integer for the number of input samples it got (1000), but the input buffer doesn't get consumed. Almost like vector_source_f was on "repeat", but it's not. Even putting a head block
after the vector source does nothing.
-Doug
From: discuss-gnuradio-bounces+address@hidden [discuss-gnuradio-bounces+address@hidden on behalf of Anderson, Douglas J.
address@hidden
Sent: Friday, March 13, 2015 12:26 PM To: GNURadio Discussion List Subject: [Discuss-gnuradio] Can you spot the error in the python basic block? Yesterday I asked a question about a failing flowgraph when connecting the copy block to a message source and running the flowgraph multiple times.
I'm still trying to understand what's going on, so I decided to write a version of "copy" in python to try and better understand things. Even though I've successfully written basic blocks in Python before, I am
really struggling to make this work.
As it's implemented, it could (should) be a sync_block (and works if it is), but copy needs to be a basic block to handle disabled copying.
The test hangs as if "py_copy" is never passing on the WORK_DONE from the vector_sink. Does anyone see the error?
|
[Prev in Thread] | Current Thread | [Next in Thread] |