GRC bug - channel limitation in QT GUI Frequency Sink

If you set the number of channels in the Freq sink block > 10 (in my
case
11), grc will throw an error.
“if len(labels[i]) == 0:
IndexError: list index out of range”

Upon further investigation, the source code it generates only has 10
arguments in the alphas, colors, widths and labels fields. If I manually
edit the source and add an 11th argument to the alphas, colors, widths
and
labels fields, then run the code from a terminal, it runs no problem.
Seems
like a GRC only error.

Just wanted to report.

thanks,
-b

On Fri, Jun 19, 2015 at 11:38 AM, ben Gee [email protected] wrote:

Just wanted to report.

thanks,
-b

Yep, that’s a known limitation. You can see in the GRC file that there’s
no
good way to arbitrarily extend a list in the XML, so we made a decision
to
limit it to this many entries.

Tom

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs