aboutsummaryrefslogtreecommitdiffstats
path: root/src/gr-fadingui/grc/fadingui_netsink.block.yml
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2021-12-03 22:19:57 +0100
committerNao Pross <np@0hm.ch>2021-12-03 22:19:57 +0100
commit2d02a9787d3bbd7320f23a3c65ee8e8ed0369c1e (patch)
treedaa5c17d4315f2660508d27202a156b215691084 /src/gr-fadingui/grc/fadingui_netsink.block.yml
parentRemove frequency LPF and clean up (diff)
downloadFading-2d02a9787d3bbd7320f23a3c65ee8e8ed0369c1e.tar.gz
Fading-2d02a9787d3bbd7320f23a3c65ee8e8ed0369c1e.zip
Replace DearPyGui Sink with Network Sink
Diffstat (limited to '')
-rw-r--r--src/gr-fadingui/grc/fadingui_netsink.block.yml (renamed from src/gr-fadingui/grc/fadingui_dearpygui_sink.block.yml)34
1 files changed, 22 insertions, 12 deletions
diff --git a/src/gr-fadingui/grc/fadingui_dearpygui_sink.block.yml b/src/gr-fadingui/grc/fadingui_netsink.block.yml
index dbe6198..4e5b01b 100644
--- a/src/gr-fadingui/grc/fadingui_dearpygui_sink.block.yml
+++ b/src/gr-fadingui/grc/fadingui_netsink.block.yml
@@ -1,10 +1,11 @@
-id: fadingui_dearpygui_sink
-label: UI Sink
+id: fadingui_netsink
+label: Network Sink
category: '[fadingui]'
+flags: [ python ]
templates:
imports: import fadingui
- make: fadingui.dearpygui_sink(sock_addr=${sock_addr}, ui_element_id=${ui_element_id})
+ make: fadingui.netsink(${address}, ${dtype}, ${vlen})
# Make one 'parameters' list entry for every parameter you want settable from the GUI.
# Keys include:
@@ -12,15 +13,22 @@ templates:
# * label (label shown in the GUI)
# * dtype (e.g. int, float, complex, byte, short, xxx_vector, ...)
parameters:
-- id: sock_addr
- label: Socket address
+- id: dtype
+ label: Type
+ dtype: enum
+ options: [complex, float, int, short, byte]
+ option_attributes:
+ size: [gr.sizeof_gr_complex, gr.sizeof_floar, gr.sizeof_int, gr.sizeof_short, gr.sizeof_char ]
+ hide: part
+- id: vlen
+ label: Vec Length
+ dtype: int
+ default: 1
+ hide: ${ 'part' if vlen == 1 else 'none' }
+- id: address
+ label: Address
dtype: string
- default: udp://
-
-- id: ui_element_id
- label: UI element ID
- dtype: raw
-
+ default: "udp://localhost:31415"
# Make one 'inputs' list entry per input and one 'outputs' list entry per output.
# Keys include:
@@ -31,7 +39,9 @@ parameters:
# * optional (optional - set to 1 for optional inputs. Default is 0)
inputs:
- label: in
- dtype: complex
+ domain: stream
+ dtype: ${dtype}
+ vlen: ${vlen}
# 'file_format' specifies the version of the GRC yml format used in the file
# and should usually not be changed.