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 = (1, 2, 3)
self.converte = gr.complex_to_float()
self.src = gr.vector_source_c (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
_________________________________________________________________
Emoticons e Winks super diferentes para o Messenger. Baixe agora, é grátis!
http://specials.br.msn.com/ilovemessenger/pacotes.aspx
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio