discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: [Discuss-gnuradio] Hier block I/O's


From: Marcus Müller
Subject: Re: [Discuss-gnuradio] Hier block I/O's
Date: Fri, 15 Aug 2014 16:38:39 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0

The port labels (for stream ports, for message ports it's different) are a concept that only exists in the context of GRC, so you can't really access them from within a python application.

Suggestion: implement a get_port_descriptor(self, port_number) method, that returns a string describing that port.


Greetings,
Marcus
On 15.08.2014 16:33, Vanush Vaswani wrote:
> I have a custom application which consists of a top block with an inter
> changeable hier block as the guts. It is then possible to dynamically alter
> the final, "real" sink that the Pad Sink connects to. I can discern the IO
> type of the pad sink from the signature of the hier block, but it would be
> good if I could describe it in a user friendly way, e.g., this output will
> be the "FFT", this output will be some time series data and so on.
> Unfortunately, it doesn't look like the label is stored in Python.
>
>
> On Sat, Feb 15, 2014 at 6:34 PM, Marcus Müller <address@hidden> wrote:
>

Hi Vanush,

I don't really understand your question. Could you rephrase/elaborate?
Also, what would you want to do with that reference?

Greetings,
Marcus

On 15.02.2014 04:50, Vanush Vaswani wrote:
>>> When including a hier block in a custom Python application, is
>>> there any way to retrieve a reference to the pad source/sink with
>>> it's label?
>>>
>>> _______________________________________________ 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
>>
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio




reply via email to

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