[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] creating a embedded python-block with multiple ou
From: |
Kristoff |
Subject: |
Re: [Discuss-gnuradio] creating a embedded python-block with multiple output types |
Date: |
Wed, 27 Feb 2019 11:29:44 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0 |
Cinaed;
(inline comments)
On 27/02/19 05:37, Cinaed Simson wrote:
There's problem with the grc file - it doesn't load into grc.
The embedded python code is using ">" instead of ">" - at least that
was my guess.
I don't know. It seams to work as is on my machine (ubuntu 16.04).
I do also see the ">" in the .grc file, but when I open the python
source-code from gnuradio-companion, they are replaced by "<" and ">".
As for your question, do you mean select a waveform in the signal source
block?
No, what I want to do is to allow the user to select the output type.
If you look at the signal-source block, it can output complex, float,
int or short. I was wondering how to implement that as part of an
embedded python block.
In my current python code, I have this:
gr.sync_block.__init__(
self,
name='morsecode encoder',
in_sig=[],
out_sig=[np.complex64] <<<<<------
)
(Where the "out_sig = ..." describes the output type)
I would like to make this output-type user-selectable.
-- Cinaed
Cheerio! Kr. Bonne.