I created 2 new blocks, one is an encoder and the other one a decoder. I
needed the encoder block to had 8 input items (from a vector source) and
output items, so I set: consume each(8) and return(11). I did not have
problem with it.
Now, for the decoder block, I needed to had 11 input items and 8 output
items, so I set: consume each(11) and return (8).
I printed out the outputs with “cout << out[i];” .
The problem: The encoder´s outputs are fine, they are what I expected
But, the decoder´s outputs are giving me trouble: At first, it behaves
the decoder´s input corresponds with encoder´s output and the decoder´s
output corresponds with the vector source´output. But then, after a
the decoder´s input do not begin in the first value as the encoder´s
and thus, the decoder´s output is not equal to the vector source´s
For example, if the encoder´s output is: 20.57, 11.45, 14.82, 17.81,
16.63, 20.57, 15.14, 16.95, 11.45, 20.57. At first, the decoder´s input
exactly the same, but after a while, are: 17.81, 16.95, 16.63, 20.57,
16.95, 11.45, 20.57, 20.57, 11.45, 14.82. It begins in the fourth value
instead the first.
Is there a way to synchronize these two bloks? So the decoder´s input is
always the same as the encoder´s output?
am I missing something? What should I do?
View this message in context:
Sent from the GnuRadio mailing list archive at Nabble.com.