Difference between revisions of "QT GUI LED Indicator"

From GNU Radio
Jump to: navigation, search
(initial creation)
 
(Parameters)
 
Line 3: Line 3:
  
 
== Parameters ==
 
== Parameters ==
(''R''): <span class="plainlinks">[https://wiki.gnuradio.org/index.php/GNURadioCompanion#Variable_Controls ''Run-time adjustable'']</span>
+
<b>(''R''):</b> <span class="plainlinks">[https://wiki.gnuradio.org/index.php/GNURadioCompanion#Variable_Controls ''Run-time adjustable'']</span>
  
 
; Id
 
; Id
Line 9: Line 9:
  
 
; Label
 
; Label
: dtype: string
 
: default: ""
 
 
: the name for the LED
 
: the name for the LED
  
 
; Label Position
 
; Label Position
: dtype: enum
 
: default: Above
 
 
: options: [Above, Below]
 
: options: [Above, Below]
  
Line 22: Line 18:
  
 
; On Color
 
; On Color
: dtype: enum
 
: default: green
 
 
: options: [silver, gray, black, white, red, green, blue, navy, yellow, orange, purple, lime, aqua, teal]
 
: options: [silver, gray, black, white, red, green, blue, navy, yellow, orange, purple, lime, aqua, teal]
  
 
; Off Color
 
; Off Color
: dtype: enum
+
: options: see above
: default: red
 
: options: [silver, gray, black, white, red, green, blue, navy, yellow, orange, purple, lime, aqua, teal]
 
  
 
; Size
 
; Size
: dtype: int
+
: default: 40 pixels
: default: 40
 
  
 
; Cell Alignment
 
; Cell Alignment
: dtype: enum
 
: default: Center
 
 
: options: [Center,Left,Right]
 
: options: [Center,Left,Right]
  
 
; Vertical Alignment
 
; Vertical Alignment
: dtype: enum
 
: default: Center
 
 
: options: [Center,Top,Bottom]
 
: options: [Center,Top,Bottom]
  

Latest revision as of 17:07, 8 November 2020

This block creates a basic LED indicator
Added in 3.9

Parameters[edit]

(R): Run-time adjustable

Id
The variable name
Label
the name for the LED
Label Position
options: [Above, Below]
State (R)
default: False
On Color
options: [silver, gray, black, white, red, green, blue, navy, yellow, orange, purple, lime, aqua, teal]
Off Color
options: see above
Size
default: 40 pixels
Cell Alignment
options: [Center,Left,Right]
Vertical Alignment
options: [Center,Top,Bottom]

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

Example Flowgraph[edit]

This flowgraph can be found at [1]

Test led fg.png

Example Output[edit]

Test led out.png

Source Files[edit]

C++ files
TODO
Header files
TODO
Public header files
TODO
Block definition
TODO