Tuesday, June 30, 2020

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

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

No comments:

Post a Comment