[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Using the dqpsk modulator
From: |
Maduike, Dumezie |
Subject: |
Re: [Discuss-gnuradio] Using the dqpsk modulator |
Date: |
Tue, 14 Apr 2009 00:25:39 -0500 (CDT) |
Hello all. In reference to this post, how does the signal actually get
transmitted through the wireless channel? Does the qpsk block need to be
connected to a usrp_sink_c() block?
Thanks
Dumezie
----- Original Message -----
From: "Eric Blossom" <address@hidden>
To: "karim" <address@hidden>
Cc: address@hidden
Sent: Thursday, April 9, 2009 12:20:25 PM GMT -06:00 Guadalajara / Mexico City
/ Monterrey
Subject: Re: [Discuss-gnuradio] Using the dqpsk modulator
On Thu, Apr 09, 2009 at 09:46:43AM -0700, karim wrote:
> 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?
You're printing the contents of the vector sinks in your
initialization code, before the graph has started running.
Try printing their contents after my_top_block().run() returns.
Eric
> I also get this when I run it:
> >>> gr_fir_ccf: using SSE
> What does it mean?
It means that the FIR block is using hand coded SSE instead of the
"generic" c++ implementation.
> 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 mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
- [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, 2009/04/09
- Re: [Discuss-gnuradio] Using the dqpsk modulator, Eric Blossom, 2009/04/09
- Re: [Discuss-gnuradio] Using the dqpsk modulator,
Maduike, Dumezie <=
- 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