[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] problem in using: dqpsk_mod() with gr.top_block
From: |
Van Tran |
Subject: |
[Discuss-gnuradio] problem in using: dqpsk_mod() with gr.top_block |
Date: |
Sun, 15 Jun 2008 18:07:18 +0200 |
Hi,
I am new in using GNURadio. I try to test the dqpsk_mod() function and
have always this error:
ValueError: unable to coerce endpoint
Could anyone tell me what wrong I have made?
Thanks so much.
Program:
#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
class my_top_block(gr.top_block):
def __init__(self):
gr.top_block.__init__(self)
src_data = (1,1,0,1,1,1,0,0)
src = gr.vector_source_b (src_data)
#input: unsigned char, output: complex
qpsk = blks.dqpsk_mod(self,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)
if __name__ == '__main__':
try:
my_top_block().run()
except KeyboardInterrupt:
pass
--
Posted via http://www.ruby-forum.com/.
- [Discuss-gnuradio] problem in using: dqpsk_mod() with gr.top_block,
Van Tran <=