|
From: | Alysson Menezes |
Subject: | [Discuss-gnuradio] Problems using gnuradio blocks |
Date: | Mon, 25 May 2009 21:34:51 +0300 |
Hello everybody. I was trying to use the gnuradio complex_to_float () block just to understand its functioning. Unfortunately, the conversion not happened and apparently there was no problem. The code is below. What's the problem with this so simple code? One more thing, it would be so helpful a dictionary with all the gnuradio blocks and usage examples. Examples are fundamental to help us reach a good level to be able to contribute for the gnuradio project, without waste so much time. Thank you very much. #!/usr/bin/env python from gnuradio import gr, eng_notation, gru, window, blks from gnuradio import audio from gnuradio import usrp from gnuradio.eng_option import eng_option from optparse import OptionParser from gnuradio import gr_unittest class my_graph(gr.flow_graph): def __init__(self): gr.flow_graph.__init__(self) self.data = "" 2, 3) self.converte = gr.complex_to_float() self.src = "" (self.data) self.vetor2 = gr.vector_sink_f () raw_input (self.data) self.connect (self.src, (self.converte,0)) self.connect ((self.converte,0), self.vetor2) self.rst = self.vetor2.data () raw_input (self.rst) if __name__ == '__main__': try: my_graph().run() except KeyboardInterrupt: pass -- Alysson Vasconcelos Gomes de Menezes Graduando em Engenharia Elétrica Universidade Federal de Campina Grande - www.ufcg.edu.br Centro de Engenharia Elétrica e Informática - www.ceei.ufcg.edu.br Quer uma internet mais segura? Baixe agora o novo Internet Explorer 8. É grátis! |
[Prev in Thread] | Current Thread | [Next in Thread] |