Re: [Discuss-gnuradio] Pythonic way of how to quit the process if U is displayed on output

2016-06-21 Thread Dave NotTelling
Haha, thanks :D

On Mon, Jun 20, 2016 at 10:18 PM, Martin Braun 
wrote:

> Yeah, they're the obsolete style. Marcus Müller has been working on a
> patch to use the PMT messages, but some obnoxious maintainer[1] keeps
> finding issues with his code :)
>
> M
>
> [1] That's me. And we'll figure out those issues :)
>
> On 06/20/2016 04:29 PM, Dave NotTelling wrote:
> > Martin,
> >
> >  Are there any examples of using that thing?  I see that is uses
> > messages, but they appear to be different from PMT messages.  There are
> > some examples that use a callback in the Python script generated by GRC,
> > but I haven't ever been able to make one of those things work.  It's
> > very possible that I'm just screwing things up.
> >
> > Thanks!
> >
> > On Mon, Jun 20, 2016 at 5:04 PM, Martin Braun  > > wrote:
> >
> > You can instantiate a USRP Async Msg block, and poll that for
> underruns.
> >
> > M
> >
> > On 06/17/2016 11:37 AM, Pavan Yedavalli wrote:
> > > Hi,
> > >
> > > Sometimes my computer acts up and displays Us on the output,
> meaning
> > > that there are underruns. However, this does not happen too often,
> but
> > > is a pain when I am running an automated trial because it freezes
> the
> > > entire program. Is there a way in python to tell whether a U is
> > printed
> > > out and then quit it so that I can try again?
> > >
> > > I have been trying to think of ways to get the screen output and
> > do some
> > > logic based on that, but I'm wondering if there is a
> > quicker/easier way
> > > since this is a relatively common problem.
> > >
> > > --
> > > Pavan
> > >
> > >
> > > ___
> > > Discuss-gnuradio mailing list
> > > Discuss-gnuradio@gnu.org 
> > > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> > >
> >
> >
> > ___
> > Discuss-gnuradio mailing list
> > Discuss-gnuradio@gnu.org 
> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> >
> >
>
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Pythonic way of how to quit the process if U is displayed on output

2016-06-20 Thread Martin Braun
Yeah, they're the obsolete style. Marcus Müller has been working on a
patch to use the PMT messages, but some obnoxious maintainer[1] keeps
finding issues with his code :)

M

[1] That's me. And we'll figure out those issues :)

On 06/20/2016 04:29 PM, Dave NotTelling wrote:
> Martin,
> 
>  Are there any examples of using that thing?  I see that is uses
> messages, but they appear to be different from PMT messages.  There are
> some examples that use a callback in the Python script generated by GRC,
> but I haven't ever been able to make one of those things work.  It's
> very possible that I'm just screwing things up.
> 
> Thanks!
> 
> On Mon, Jun 20, 2016 at 5:04 PM, Martin Braun  > wrote:
> 
> You can instantiate a USRP Async Msg block, and poll that for underruns.
> 
> M
> 
> On 06/17/2016 11:37 AM, Pavan Yedavalli wrote:
> > Hi,
> >
> > Sometimes my computer acts up and displays Us on the output, meaning
> > that there are underruns. However, this does not happen too often, but
> > is a pain when I am running an automated trial because it freezes the
> > entire program. Is there a way in python to tell whether a U is
> printed
> > out and then quit it so that I can try again?
> >
> > I have been trying to think of ways to get the screen output and
> do some
> > logic based on that, but I'm wondering if there is a
> quicker/easier way
> > since this is a relatively common problem.
> >
> > --
> > Pavan
> >
> >
> > ___
> > Discuss-gnuradio mailing list
> > Discuss-gnuradio@gnu.org 
> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> >
> 
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org 
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 
> 


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Pythonic way of how to quit the process if U is displayed on output

2016-06-20 Thread Dave NotTelling
Martin,

 Are there any examples of using that thing?  I see that is uses
messages, but they appear to be different from PMT messages.  There are
some examples that use a callback in the Python script generated by GRC,
but I haven't ever been able to make one of those things work.  It's very
possible that I'm just screwing things up.

Thanks!

On Mon, Jun 20, 2016 at 5:04 PM, Martin Braun 
wrote:

> You can instantiate a USRP Async Msg block, and poll that for underruns.
>
> M
>
> On 06/17/2016 11:37 AM, Pavan Yedavalli wrote:
> > Hi,
> >
> > Sometimes my computer acts up and displays Us on the output, meaning
> > that there are underruns. However, this does not happen too often, but
> > is a pain when I am running an automated trial because it freezes the
> > entire program. Is there a way in python to tell whether a U is printed
> > out and then quit it so that I can try again?
> >
> > I have been trying to think of ways to get the screen output and do some
> > logic based on that, but I'm wondering if there is a quicker/easier way
> > since this is a relatively common problem.
> >
> > --
> > Pavan
> >
> >
> > ___
> > Discuss-gnuradio mailing list
> > Discuss-gnuradio@gnu.org
> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> >
>
>
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


Re: [Discuss-gnuradio] Pythonic way of how to quit the process if U is displayed on output

2016-06-20 Thread Martin Braun
You can instantiate a USRP Async Msg block, and poll that for underruns.

M

On 06/17/2016 11:37 AM, Pavan Yedavalli wrote:
> Hi,
> 
> Sometimes my computer acts up and displays Us on the output, meaning
> that there are underruns. However, this does not happen too often, but
> is a pain when I am running an automated trial because it freezes the
> entire program. Is there a way in python to tell whether a U is printed
> out and then quit it so that I can try again?
> 
> I have been trying to think of ways to get the screen output and do some
> logic based on that, but I'm wondering if there is a quicker/easier way
> since this is a relatively common problem.
> 
> -- 
> Pavan
> 
> 
> ___
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> 


___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] Pythonic way of how to quit the process if U is displayed on output

2016-06-17 Thread Pavan Yedavalli
Hi,

Sometimes my computer acts up and displays Us on the output, meaning that
there are underruns. However, this does not happen too often, but is a pain
when I am running an automated trial because it freezes the entire program.
Is there a way in python to tell whether a U is printed out and then quit
it so that I can try again?

I have been trying to think of ways to get the screen output and do some
logic based on that, but I'm wondering if there is a quicker/easier way
since this is a relatively common problem.

-- 
Pavan
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio