discuss-gnuradio
[Top][All Lists]
Advanced

[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




reply via email to

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