Re: [Discuss-gnuradio] Question on PMT boolean messages

2019-05-07 Thread Ben Hilburn
Excellent! So glad you got it working, Ali, and thanks for sharing the solution to your issue! Cheers, Ben On Wed, May 1, 2019 at 3:45 PM Ali Dormiani wrote: > I figured this out today. I used a handle_msg and simply connected a > message strobe to the 'junk' msg input. My custom block works as

Re: [Discuss-gnuradio] Question on PMT boolean messages

2019-05-01 Thread Ali Dormiani
I figured this out today. I used a handle_msg and simply connected a message strobe to the 'junk' msg input. My custom block works as expected now. On Tue, Apr 30, 2019 at 12:56 PM Ali Dormiani wrote: > Hello, > > Thank you for the advice. I went back to the tutorials and now I have a > better g

Re: [Discuss-gnuradio] Question on PMT boolean messages

2019-04-30 Thread Ali Dormiani
Hello, Thank you for the advice. I went back to the tutorials and now I have a better grasp of what is going on. Regarding 'work' vs 'handle_msg', which situations fit each of these? Is 'handle_msg' supposed to be for passing messages through multiple internal msg ports? Is 'work' for dealing w

Re: [Discuss-gnuradio] Question on PMT boolean messages

2019-04-29 Thread Marcus Müller
Hi Ali, causality, our old foe, strikes again! You're trying to emit a message in the constructor. Messages will be delivered to all message acceptors connected to that message port. However, you can't possibly connect the block before the block-holding object exists, i.e. before the constructor

[Discuss-gnuradio] Question on PMT boolean messages

2019-04-29 Thread Ali Dormiani
Hello everyone, I have been attempting to make my own block that sends out a boolean message if certain time related conditions are met. I am unable to figure out why my block does not work. This seems to be the line of interest: *self.message_port_pub(pmt.intern('msg_out'), pmt.PMT_T)* This li