summaryrefslogtreecommitdiff
path: root/gr-channels/grc/channels_channel_model2.block.yml
blob: f42a77c8ddc17a12e8ca901d09cd75e9f7c5a8d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
id: channels_channel_model2
label: Channel Model 2

parameters:
-   id: noise_voltage
    label: Noise Voltage
    dtype: real
    default: '0.0'
-   id: epsilon
    label: Time Offset
    dtype: real
    default: '1.0'
-   id: taps
    label: Taps
    dtype: complex_vector
    default: 1.0 + 1.0j
-   id: seed
    label: Seed
    dtype: int
    default: '0'
-   id: block_tags
    label: Block Tag Propagation
    dtype: enum
    default: 'False'
    options: ['True', 'False']
    option_labels: ['Yes', 'No']
    option_attributes:
        hide_block: ['', part]
    hide: ${ block_tags.hide_block }

inputs:
-   domain: stream
    dtype: complex
-   label: freq
    domain: stream
    dtype: float
-   label: time
    domain: stream
    dtype: float

outputs:
-   domain: stream
    dtype: complex

templates:
    imports: |-
        from gnuradio import channels
        from gnuradio.filter import firdes
    make: "channels.channel_model2(\n\tnoise_voltage=${noise_voltage},\n\tepsilon=${epsilon},\n\
        \ttaps=${taps},\n\tnoise_seed=${seed},\n\tblock_tags=${block_tags}\n)"
    callbacks:
    - set_noise_voltage(${noise_voltage})
    - set_taps(${taps})
    - set_timing_offset(${epsilon})

file_format: 1