discuss-gnuradio
[Top][All Lists]
Advanced

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

Re: Making C++ OOT module and wish to set up a parameter with different


From: Ron Economos
Subject: Re: Making C++ OOT module and wish to set up a parameter with different choices!
Date: Tue, 30 Jun 2020 16:19:55 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0

It's done in the .yml file in gr-foo/grc. Here's a simple example:

https://github.com/gnuradio/gnuradio/blob/master/gr-analog/grc/analog_sig_source_x.block.yml#L6

And a more complex example:

https://github.com/gnuradio/gnuradio/blob/master/gr-dtv/grc/dtv_dvb_ldpc_bb.block.yml

If you use a definition from an additional project .h file, that .h file must be included in gr-foo/swig/foo_swig.i.

Ron

On 6/30/20 10:05, George Edwards wrote:
Hello,

I am making a C++ OOT module and wish to have an input parameter "frame_length" with different choices. I would like to provide short, medium and long frames with a value attached to each. Based on the OOT syntax, I can enter "frame_length" as an input argument to the model. Now, how can I set  up the inners of the *.cc file so that when the module is built into a Gnuradio block, I can simply click on 'frame_length' to see the choices and select one?

Thanks for the help.

Regards,
George



reply via email to

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