QT GUI Range: Difference between revisions

From GNU Radio
Jump to navigation Jump to search
(add example flowgraph)
No edit summary
Line 1: Line 1:
This block creates a variable with a choice of widgets. The ID will be the variable name, so that ID can be used as a parameter in another block to make it adjustable in real-time.
This block creates a variable with a choice of widgets. The ID will be the variable name, so that ID can be used as a parameter in another block to make it adjustable in real-time.


Leave the label blank to use the variable id as the label.      
Leave the label blank to use the variable id as the label.    
 
This block does not support C++ output, so it cannot be used when the output language of a flowgraph in GRC is C++. 


== Parameters ==
== Parameters ==


* Default Value  The default value must be between the start and stop values.
; Default Value   
* Start
: The default value must be between the start and stop values.
* Stop
 
* Step
; Start
* Widget
:
** Counter + Slider
 
** Counter
; Stop
** Slider
:
** Knob
 
; Step
:
 
; Widget
:** Counter + Slider
:** Counter
:** Slider
:** Knob
See [[GUI Hint]] for how to position the GUI within a window.
See [[GUI Hint]] for how to position the GUI within a window.



Revision as of 05:55, 20 January 2022

This block creates a variable with a choice of widgets. The ID will be the variable name, so that ID can be used as a parameter in another block to make it adjustable in real-time.

Leave the label blank to use the variable id as the label.

This block does not support C++ output, so it cannot be used when the output language of a flowgraph in GRC is C++.

Parameters

Default Value
The default value must be between the start and stop values.
Start
Stop
Step
Widget
    • Counter + Slider
    • Counter
    • Slider
    • Knob

See GUI Hint for how to position the GUI within a window.

Example Flowgraph

The following flowgraph has three QT GUI Range blocks for the variables 'volume', 'tuning', and 'sq_lvl'.

FunCube 2 meter NB FM fg.png

The run-time window shows the three QT GUI Range widgets.

FunCube 2 meter NB FM out.png