discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: Problem writing OOT yml file for variable number of inputs


From: Tim Huggins
Subject: Re: Problem writing OOT yml file for variable number of inputs
Date: Tue, 9 Feb 2021 13:22:40 +0000 (UTC)

George,

I previously sent you the yml file for the multiple block (you can find the add block in the same directory, https://github.com/gnuradio/gnuradio/tree/master/gr-blocks/grc, if you want to look at that one). Take a look at how variables are referenced in those files and I think you'll see the difference between them and your file.

Tim

On Monday, February 8, 2021, 10:01:03 PM EST, George Edwards <gedwards.eng@gmail.com> wrote:


Hi Jeff,

Thanks for your response!

I have looked at the link you sent and it has not helped me. I have tried to find the yml file for the adder in the past without any success. I cannot find it.

George 

On Mon, Feb 8, 2021 at 7:19 PM Jeff Long <willcode4@gmail.com> wrote:

Also, take a look at yml files for existing blocks that have a variable number of inputs. For example, the Add block.

On Mon, Feb 8, 2021 at 8:09 PM George Edwards <gedwards.eng@gmail.com> wrote:
Hello,

I have a problem writing the yml file for a variable number of inputs to my GRC block. In the OOT Python file, a parameter called n_input is passed into the GRC block and I was hoping it would be accessible in the yml file. In the yml file I wrote:
parameters:
- id: n_inputs
  label: Number of Inputs
  dtype: int
  default: 3

inputs: 
- domain: stream
  dtype: complex
  multiplicity: n_inputs

The program fails with message: invalid literal for int() with base 10. Then, I tried multiplicity with: int(n_inputs) and 'n_input' which all failed. How can I fix this, because if I were to specify a static value for example: multiplicity: '5', it works and provides a block with 5 inputs.

I will appreciate any help offered!

Thank you!

George

reply via email to

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