self.txpath=transmit_path(modulator, options) # self.txpath receive n hold
pointer from transmit_path() function
self.connect(self.txpath) #call function
self.connect() which hold pointer
class my_top_block(gr.top_block): # new class created
def __init__(self, modulator, options): # __init__ method
initialization with object variable declaration
gr.top_block.__init__(self) # parent/father
constructor is called
#__init__ method passes modulator and options arguments/parameter to
function whose call it.
class my_top_block(gr.top_block):
def __init__(self):
gr.top_block.__init__(self)
sample_rate = 32000 # local variable, no need to declare in python
ampl = 0.1
ma 2 cent understanding,
regards,
kaeroul
--
View this message in context: http://old.nabble.com/description-of-coding-tp28593068p28629271.html
Sent from the GnuRadio mailing list archive at Nabble.com.
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
No comments:
Post a Comment