Not looking too deeply at the code, i would assume the problem is a
mismatch between the 2 blocks. sig_source_f outputs single floating
point values (4 bytes), while blocks defined with _cc usually output
complex float (8 bytes). Maybe try using sig_source_c instead
Could anyone give me some ideas how to solve this issue? I know that I
need to delay the Q channel and add more Blocks. But this won’t help
on the vector consumption issue afaik.
Best,
Marius
Hi Marius,
The problem is that the modulator is expecting complex floats (8-bytes
per sample), but you are only connecting a floating point source
(4-bytes per sample). You would want to use sig_source_c, instead, to
produce complex values.
On the other hand, I’m not sure I understand why you are using a
sig_source at all. This will generate a period waveform, mostly a sine
wave. You can have it produce a square wave, which is more appropriate
for digital modulation, but there are still better ways to do this
since you will really want random data going into the modulator. To
debug modulators/demodulators, I tend to generate random bits using
the Python random.randint function (actually, I like scipy’s version
better) to create some N number of samples and put that into a vector
source where you can either repeat the data or not.
Tom
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.