[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] Store in a variable the output of the grinspector
From: |
CEL |
Subject: |
Re: [Discuss-gnuradio] Store in a variable the output of the grinspector's blocks. |
Date: |
Wed, 12 Jun 2019 16:46:14 +0000 |
From the top of my head:
for i in range(pmt.length(message)):
value = pmt.vector_ref(message, i)
PMT is not a beautiful construct in Python, sorry :(
Best regards,
Marcus
On Wed, 2019-06-12 at 10:56 -0500, Daniel Andres Palacios wrote:
> Thanks Marcus, thats a good idea. I got the message from the debug block but,
> is there a way to iterate over that message recieved?
> When I pass pmt.is_vector(message) i got True, but then I can't get a
> specific object in the vector because it hasn't a get attribute.
>
> sorry for the insistence, I kind of beginner and the PMT python API is not
> specific enough
>
> On Tue, Jun 11, 2019 at 12:27 PM Daniel Andres Palacios <address@hidden>
> wrote:
> > Ok. Thank you.
> > I managed to get the messages from the debug block. Now, I have to deal
> > with types conversation.
> >
> > Thanks
> >
> > On Tue, Jun 11, 2019 at 7:59 AM Müller, Marcus (CEL) <address@hidden> wrote:
> > > But the debug block does exactly what you need: store the data and thus
> > > allow for analysis. Why don't you want to use it? Sounds like the right
> > > tool.
> > >
> > >
> > > On Tue, 2019-06-11 at 03:03 -0500, Daniel Andres Palacios wrote:
> > > > Hi. Thanks for your reply.
> > > >
> > > > The signal extractor block's output is a vector of tuples with center
> > > > frequency an band width. I want to know the length of the vector
> > > > without using the debug block. And store the data for further
> > > > processing.
> > > >
> > > > On Tue, Jun 11, 2019, 02:22 Müller, Marcus (CEL) <address@hidden> wrote:
> > > > > There's the function probes.
> > > > >
> > > > > Using that is almost always a sign of bad design; what do you want to
> > > > > achieve that way?
> > > > >
> > > > > Best regards,
> > > > > Marcus
> > > > >
> > > > > On Sun, 2019-06-09 at 19:23 -0500, Daniel Andres Palacios wrote:
> > > > > >
> > > > > > Hi everyone
> > > > > > it is there a way to get and store in a variable the output of gr-
> > > > > > inspector's blocks.
> > > > > >
> > > > > > --
> > > > > > Daniel Andrés Palacios Carabalí
> > > > > > Student of Telemathics engineering
> > > > > > Icesi University- Cali, Colombia
> > > > > >
> > > > > > _______________________________________________
> > > > > > Discuss-gnuradio mailing list
> > > > > > address@hidden
> > > > > > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> > > >
> > > > _______________________________________________
> > > > Discuss-gnuradio mailing list
> > > > address@hidden
> > > > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> >
> >
> > --
> > Daniel Andrés Palacios Carabalí
> > Student of Telemathics engineering
> > Icesi University- Cali, Colombia
> > ===========================
> > Estudiante de Ingeniería Telemática
> > Universidad Icesi. - Cali, Colombia
>
>
smime.p7s
Description: S/MIME cryptographic signature
- [Discuss-gnuradio] Store in a variable the output of the grinspector's blocks., Daniel Andres Palacios, 2019/06/09
- Re: [Discuss-gnuradio] Store in a variable the output of the grinspector's blocks., CEL, 2019/06/11
- Re: [Discuss-gnuradio] Store in a variable the output of the grinspector's blocks., Daniel Andres Palacios, 2019/06/11
- Re: [Discuss-gnuradio] Store in a variable the output of the grinspector's blocks., CEL, 2019/06/11
- Re: [Discuss-gnuradio] Store in a variable the output of the grinspector's blocks., Daniel Andres Palacios, 2019/06/11
- Re: [Discuss-gnuradio] Store in a variable the output of the grinspector's blocks., Daniel Andres Palacios, 2019/06/12
- Re: [Discuss-gnuradio] Store in a variable the output of the grinspector's blocks.,
CEL <=
- Re: [Discuss-gnuradio] Store in a variable the output of the grinspector's blocks., CEL, 2019/06/12
- Re: [Discuss-gnuradio] Store in a variable the output of the grinspector's blocks., Daniel Andres Palacios, 2019/06/13