diff options
Diffstat (limited to '')
-rw-r--r-- | src/gr-fadingui/grc/fadingui_netsink.block.yml (renamed from src/gr-fadingui/grc/fadingui_xor_frame_sync.block.yml) | 40 |
1 files changed, 24 insertions, 16 deletions
diff --git a/src/gr-fadingui/grc/fadingui_xor_frame_sync.block.yml b/src/gr-fadingui/grc/fadingui_netsink.block.yml index 1a8640d..3cd8ae7 100644 --- a/src/gr-fadingui/grc/fadingui_xor_frame_sync.block.yml +++ b/src/gr-fadingui/grc/fadingui_netsink.block.yml @@ -1,11 +1,13 @@ -id: fadingui_xor_frame_sync -label: XOR Correlation Synchronizer +id: fadingui_netsink +label: Network Sink category: '[fadingui]' flags: [ python ] templates: - imports: import fadingui - make: fadingui.xor_frame_sync(sync_pattern=${pattern}, buffer_size=${buffer_size}) + imports: |- + import fadingui + import numpy as np + make: fadingui.netsink(address=${address}, dtype="${type}", vlen=${veclen}) # Make one 'parameters' list entry for every parameter you want settable from the GUI. # Keys include: @@ -13,12 +15,22 @@ templates: # * label (label shown in the GUI) # * dtype (e.g. int, float, complex, byte, short, xxx_vector, ...) parameters: -- id: pattern - label: Bit pattern - dtype: raw -- id: buffer_size - label: Delay buffer size - dtype: raw +- id: type + label: Type + dtype: enum + options: [complex, float, int, short, byte] + option_attributes: + size: [gr.sizeof_gr_complex, gr.sizeof_float, gr.sizeof_int, gr.sizeof_short, gr.sizeof_char] + hide: part +- id: veclen + label: Vec Length + dtype: int + default: '1' + hide: ${ 'part' if veclen == 1 else 'none' } +- id: address + label: Address + dtype: string + default: "udp://localhost:31415" # Make one 'inputs' list entry per input and one 'outputs' list entry per output. # Keys include: @@ -30,12 +42,8 @@ parameters: inputs: - label: in domain: stream - dtype: byte - -outputs: -- label: out - domain: stream - dtype: byte + dtype: ${type} + vlen: ${veclen} # 'file_format' specifies the version of the GRC yml format used in the file # and should usually not be changed. |