discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Monitor O's and U's from Python


From: Richard Bell
Subject: Re: Monitor O's and U's from Python
Date: Sat, 22 Apr 2023 18:25:16 -0700

Thanks for catching that Marcus. 

I'm still having a problem even finding an output message port for the usrp_source block. I should say I'm using gnuradio 3.8.5, if that makes a difference.

For example, if I print self.uhd_usrp_source.message_ports_in() I get "command" and "system". But if I print self.uhd_usrp_source.message_ports_out() I get an empty tuple.Are output message ports on usrp sources somewhat new?

On Sat, Apr 22, 2023 at 7:07 AM Marcus D. Leech <patchvonbraun@gmail.com> wrote:
On 22/04/2023 01:46, Richard Bell wrote:
Hi Marcus,

Good to hear from you, I hope all is well. Thanks for this response.

I tried doing what you said, but I get the attached error message. I have been looking the docs but haven't found much discussion that is helping. Do you see anything wrong with these relevant code snippets?

# create the USRP source
self.uhd_usrp_source_0 = uhd.usrp_source(
            ",".join((addr0, "", "master_clock_rate=200e6")),
            uhd.stream_args(
                cpu_format="fc32",
                args='',
                channels=list(range(0,1)),
     ),
)

# create the message debug block
self.message_debug_block = blocks.message_debug()
# connect the usrps async_msgs port to the message debug blocks store port
self.connect((self.uhd_usrp_source, 'async_msgs'), (self.message_debug_block, 'store'))
image.png

I think you should be using msg_connect, rather than "connect".



reply via email to

[Prev in Thread] Current Thread [Next in Thread]