Re: [Discuss-gnuradio] Python Unit Test with message ports - "Could not find port"

2017-01-13 Thread Steven Knudsen
Subject: Re: [Discuss-gnuradio] Python Unit Test with message ports - "Could not find port"

Re: [Discuss-gnuradio] Python Unit Test with message ports - "Could not find port"

2017-01-13 Thread Marcus Müller
f.tb.msg_connect((self.jitc_random_sequenced_pdu_0, >>>> 'pdus'), (self.blocks_message_debug_0, 'print')) >>>> >>>> >>>> But this does work >>>> >>>> #self.tb.msg_connect((self.blocks_message_strobe_0, >>

Re: [Discuss-gnuradio] Python Unit Test with message ports - "Could not find port"

2017-01-12 Thread Steven Knudsen
dus'), >>> (self.blocks_message_debug_0, 'print')) >>> >>> Last observation is that if I replace my random_sequenced_pdu with block’s >>> random_pdu,it all works. So, it’s definitely something with my module. Is >>> something not generated via/by swig maybe?

Re: [Discuss-gnuradio] Python Unit Test with message ports - "Could not find port"

2017-01-12 Thread Steven Knudsen
t generated via/by swig maybe? I tried digging into gr-blocks to >> look for differences, but so far none that I can see. >> >> Sorry this is kind of long, but it’s a weird problem, weird because my stuff >> works fine in GRC!?! >> >> regards, and thanks, >> &

Re: [Discuss-gnuradio] Python Unit Test with message ports - "Could not find port"

2017-01-12 Thread Marcus Müller
d digging > into gr-blocks to look for differences, but so far none that I can see. > > Sorry this is kind of long, but it’s a weird problem, weird because my > stuff works fine in GRC!?! > > regards, and thanks, > > steven > > > > > > > > > >> -

Re: [Discuss-gnuradio] Python Unit Test with message ports - "Could not find port"

2017-01-11 Thread Steven Knudsen
Hi Marcus,You worry me with your “various ways” comment :-/All I have done is extended the random_pdu from gr-blocks by including a sequence number in the PDU. So, the constructor is where the message ports are registered and is identical to the random_pdu constructor. I’ve attached a snippet

Re: [Discuss-gnuradio] Python Unit Test with message ports - "Could not find port"

2017-01-11 Thread Marcus Müller
Hi Steven, that's strange indeed. In various ways. Could you tell us: 1. where do you register the message port? Could you copy that exact line? 2. could you copy both message_connect lines from the GRC-generated and your unit test python? Thanks, Marcus On 01/11/2017 01:35 AM, Steven