[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] Using the dqpsk modulator
From: |
karim |
Subject: |
[Discuss-gnuradio] Using the dqpsk modulator |
Date: |
Thu, 09 Apr 2009 09:46:43 -0700 |
User-agent: |
Thunderbird 2.0.0.21 (X11/20090318) |
Hi,
I am trying to use the dqpsk modulator block to modulate some data and
then take the output and separate it to real and imag. This is the code,
it runs but the sinks are empty and have no data. What am I doing wrong?
I also get this when I run it:
>>> gr_fir_ccf: using SSE
What does it mean?
My code is below.
Cheers,
Karim
#no GUI
#source: stream from file_source
#connect with DQPSK: input: byte stream, output:complex
#change it to 2 parts:imagine and Real
#connect with gr.complex_to_real or gr.complex_to_imag
#display data in sink1 (real) and sink2 (imag)
class my_top_block(gr.top_block):
def __init__(self):
gr.top_block.__init__(self)
src_data = (1,0,1,0,1,0,1,0)
src = gr.vector_source_b (src_data)
#input: unsigned char, output: complex
qpsk = blks2.dqpsk_mod(2,.35,True, False, False)
self.connect (src,qpsk)
real = gr.complex_to_real()
imag = gr.complex_to_imag()
self.connect(qpsk,real)
self.connect(qpsk,imag)
sink1 = gr.vector_sink_f()
sink2 = gr.vector_sink_f()
self.connect(real,sink1)
self.connect(imag,sink2)
print "Data in sink1 is: ",sink1.data()
print "Data in sink2 is: ",sink2.data()
if __name__ == '__main__':
try:
my_top_block().run()
except KeyboardInterrupt:
pass
- [Discuss-gnuradio] [benchmark_ofdm], Rita's pfc, 2009/04/07
- Re: [Discuss-gnuradio] [benchmark_ofdm], Martin Braun, 2009/04/08
- [Discuss-gnuradio] QPSK basic modulator, karim, 2009/04/08
- Re: [Discuss-gnuradio] QPSK basic modulator, Ed Criscuolo, 2009/04/08
- Re: [Discuss-gnuradio] QPSK basic modulator, Karim El Defrawy, 2009/04/08
- [Discuss-gnuradio] Using the dqpsk modulator,
karim <=
- Re: [Discuss-gnuradio] Using the dqpsk modulator, Eric Blossom, 2009/04/09
- Re: [Discuss-gnuradio] Using the dqpsk modulator, Maduike, Dumezie, 2009/04/14
- Re: [Discuss-gnuradio] Using the dqpsk modulator, karim, 2009/04/14
- Re: [Discuss-gnuradio] Using the dqpsk modulator, Eric Blossom, 2009/04/15
- Re: [Discuss-gnuradio] Using the dqpsk modulator, Karim El Defrawy, 2009/04/15
Re: [Discuss-gnuradio] [benchmark_ofdm], rita pfc, 2009/04/13