discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Question about hier block


From: Axel Belliard
Subject: Re: [Discuss-gnuradio] Question about hier block
Date: Mon, 29 Mar 2010 10:43:08 +0200 (CEST)
User-agent: SquirrelMail/1.5.1

Hi,

Thanks for taking the time to reply. I changed my code to print the data
after the constuctor. But it is still not working. I guess, I 'm doing
something else wrong.

The changed code :
 #####################My top block############################


 from gnuradio import gr
from Trameur_stanag import Trameur
class top(gr.top_block):
 def __init__(self): gr.top_block.__init__(self)

 self.src_data =
 (1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1
 ,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1)


 self.in_data =   gr.vector_source_b(self.src_data) self.tramage =
 Trameur ()
 self.sink2=gr.vector_sink()

self.connect( self.in_data, self.tramage) self.connect(self.tramage,
 self.sink2)
 def print_data(self)
 print "out" , self.sink2.data()
>> if __name__ == '__main__': try:
>> tb = top()
tb.run()
tb.print_data()
except KeyboardInterrupt: pass






reply via email to

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