Hierarchical Blocks

Hi all,

According to the tutorial of Gnu radio / python applications, It is
possible
to create Hierarchical blocks. However when i try to implement it i get
some
errors. is it possible to trace the flow graph while its is running to
check
where the error is ? how? / OR is my using of connect method is wrong?

This is my connecting code:
##########################################################################
At original class:
self._u is an object of my usrp (which initiated to have 2 channels)

gr.hier_block2.__init__(self, "generic",
        gr.io_signature(0, 0, 0), # Input signature
        gr.io_signature(2, 2, gr.sizeof_gr_complex)) # Output 

signature

self.connect(self._u, self.di)
self.connect((self.di,0),(self,0))
self.connect((self.di,1),(self,1))

In my top_block class:

“self.sense_u” is an object of the previous “self”
self.rxpath.connect((self.sense_u,0), self.rxpath.block0a)
self.sense_tb.connect((self.sense_u,1), self.sense_tb.block1a,
self.sense_tb.block1b, self.sense_tb.block1c, self.sense_tb.block1d)

##########################################################################
The error:
terminate called after throwing an instance of ‘std::invalid_argument’
what(): destination already in use by edge
usrp_source_c(32):0->deinterleave(33):0
Aborted

thanks


View this message in context:
http://old.nabble.com/Hierarchical-Blocks-tp28273707p28273707.html
Sent from the GnuRadio mailing list archive at Nabble.com.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs