[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] description of coding
From: |
kaeroul |
Subject: |
Re: [Discuss-gnuradio] description of coding |
Date: |
Thu, 20 May 2010 20:17:41 -0700 (PDT) |
salam,
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [Discuss-gnuradio] description of coding,
kaeroul <=