Skip to content

Instantly share code, notes, and snippets.

@pcercuei
Created September 20, 2021 20:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pcercuei/2126a850c5ab9ca12bbb38ea61e24960 to your computer and use it in GitHub Desktop.
Save pcercuei/2126a850c5ab9ca12bbb38ea61e24960 to your computer and use it in GitHub Desktop.
options:
parameters:
author: paul
catch_exceptions: 'True'
category: '[GRC Hier Blocks]'
cmake_opt: ''
comment: ''
copyright: ''
description: ''
gen_cmake: 'On'
gen_linking: dynamic
generate_options: qt_gui
hier_block_src_path: '.:'
id: test_iio
max_nouts: '0'
output_language: python
placement: (0,0)
qt_qss_theme: ''
realtime_scheduling: ''
run: 'True'
run_command: '{python} -u {filename}'
run_options: prompt
sizing_mode: fixed
thread_safe_setters: ''
title: Not titled yet
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [0, 12.0]
rotation: 0
state: enabled
blocks:
- name: attenuation
id: variable_qtgui_range
parameters:
comment: ''
gui_hint: ''
label: Attenuation (TX)
min_len: '200'
orient: QtCore.Qt.Horizontal
rangeType: float
start: '50'
step: '1'
stop: '89'
value: '68'
widget: counter_slider
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [568, 12.0]
rotation: 0
state: enabled
- name: attenuation_0
id: variable
parameters:
comment: ''
value: -attenuation
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [464, 12.0]
rotation: 0
state: enabled
- name: samp_rate
id: variable
parameters:
comment: ''
value: int(320e3)
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [168, 12.0]
rotation: 0
state: enabled
- name: samp_rate2
id: variable
parameters:
comment: ''
value: '35'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [368, 12.0]
rotation: 0
state: enabled
- name: uri
id: variable
parameters:
comment: ''
value: '"usb:3.6.5"'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [256, 12.0]
rotation: 0
state: enabled
- name: analog_sig_source_x_0
id: analog_sig_source_x
parameters:
affinity: ''
alias: ''
amp: '1'
comment: ''
freq: '10000'
maxoutbuf: '0'
minoutbuf: '0'
offset: '0'
phase: '0'
samp_rate: samp_rate
type: complex
waveform: analog.GR_COS_WAVE
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1088, 188.0]
rotation: 180
state: enabled
- name: analog_sig_source_x_0_0
id: analog_sig_source_x
parameters:
affinity: ''
alias: ''
amp: '1'
comment: ''
freq: '1000'
maxoutbuf: '0'
minoutbuf: '0'
offset: '0'
phase: '0'
samp_rate: samp_rate
type: complex
waveform: analog.GR_COS_WAVE
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [416, 452.0]
rotation: 0
state: enabled
- name: analog_sig_source_x_0_1
id: analog_sig_source_x
parameters:
affinity: ''
alias: ''
amp: '1'
comment: ''
freq: 10e3
maxoutbuf: '0'
minoutbuf: '0'
offset: '0'
phase: '0'
samp_rate: samp_rate
type: complex
waveform: analog.GR_COS_WAVE
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [176, 172.0]
rotation: 0
state: disabled
- name: blocks_add_xx_0
id: blocks_add_xx
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
num_inputs: '2'
type: complex
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [424, 320.0]
rotation: 180
state: enabled
- name: blocks_complex_to_interleaved_short_0
id: blocks_complex_to_interleaved_short
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
scale_factor: 1<<15
vector_output: 'False'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [416, 204.0]
rotation: 0
state: disabled
- name: blocks_deinterleave_0
id: blocks_deinterleave
parameters:
affinity: ''
alias: ''
blocksize: '1'
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
num_streams: '2'
type: short
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [616, 200.0]
rotation: 0
state: disabled
- name: blocks_float_to_complex_0
id: blocks_float_to_complex
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [728, 320.0]
rotation: 180
state: enabled
- name: blocks_float_to_complex_0_0
id: blocks_float_to_complex
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [728, 392.0]
rotation: 180
state: enabled
- name: blocks_interleave_0
id: blocks_interleave
parameters:
affinity: ''
alias: ''
blocksize: '1'
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
num_streams: '2'
type: short
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1088, 504.0]
rotation: 180
state: enabled
- name: blocks_interleaved_short_to_complex_0
id: blocks_interleaved_short_to_complex
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
scale_factor: '1600'
swap: 'False'
vector_input: 'False'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [888, 508.0]
rotation: 180
state: enabled
- name: blocks_multiply_xx_0
id: blocks_multiply_xx
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
num_inputs: '2'
type: complex
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [576, 304.0]
rotation: 180
state: enabled
- name: blocks_multiply_xx_0_0
id: blocks_multiply_xx
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
num_inputs: '2'
type: complex
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [576, 384.0]
rotation: 180
state: enabled
- name: blocks_repeat_0
id: blocks_repeat
parameters:
affinity: ''
alias: ''
comment: ''
interp: int(samp_rate / samp_rate2)
maxoutbuf: '0'
minoutbuf: '0'
type: short
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1048, 316.0]
rotation: 180
state: enabled
- name: blocks_repeat_0_0
id: blocks_repeat
parameters:
affinity: ''
alias: ''
comment: ''
interp: int(samp_rate / samp_rate2)
maxoutbuf: '0'
minoutbuf: '0'
type: short
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1048, 388.0]
rotation: 180
state: enabled
- name: blocks_short_to_float_0
id: blocks_short_to_float
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
scale: '4096'
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [896, 316.0]
rotation: 180
state: enabled
- name: blocks_short_to_float_0_0
id: blocks_short_to_float
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
scale: '4096'
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [896, 388.0]
rotation: 180
state: enabled
- name: iio_attr_sink_0
id: iio_attr_sink
parameters:
affinity: ''
alias: ''
attr_type: '0'
channel: voltage0
comment: ''
device: ad9361-phy
output: 'True'
uri: uri
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1224, 604.0]
rotation: 0
state: disabled
- name: iio_attr_updater_0
id: iio_attr_updater
parameters:
affinity: ''
alias: ''
attr: hardwaregain
comment: ''
interval: '500'
maxoutbuf: '0'
minoutbuf: '0'
value: str(attenuation_0)
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [976, 612.0]
rotation: 0
state: disabled
- name: iio_device_sink_0
id: iio_device_sink
parameters:
affinity: ''
alias: ''
buffer_size: '32768'
channels: '["voltage0", "voltage1"]'
comment: ''
cyclic: 'False'
device: cf-ad9361-dds-core-lpc
device_phy: ad9361-phy
interpolation: '1'
len_tag_key: ''
params: '[]'
uri: uri
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [848, 76.0]
rotation: 0
state: disabled
- name: iio_device_source_0
id: iio_device_source
parameters:
affinity: ''
alias: ''
buffer_size: '8'
channels: '["voltage3", "voltage4"]'
comment: ''
decimation: '1'
device: jz-adc
device_phy: jz-adc
len_tag_key: packet_len
maxoutbuf: '0'
minoutbuf: '0'
params: '[]'
uri: ip:rg350.local
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [1264, 340.0]
rotation: 180
state: enabled
- name: iio_pluto_sink_0
id: iio_pluto_sink
parameters:
affinity: ''
alias: ''
attenuation1: attenuation
bandwidth: '20000000'
buffer_size: '32768'
comment: ''
cyclic: 'False'
filter: ''
filter_source: '''Auto'''
fpass: samp_rate/4
frequency: '2400000000'
fstop: samp_rate/3
len_tag_key: ''
samplerate: samp_rate
uri: uri
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [176, 316.0]
rotation: 180
state: enabled
- name: iio_pluto_source_0
id: iio_pluto_source
parameters:
affinity: ''
alias: ''
bandwidth: '20000000'
bbdc: 'True'
buffer_size: '32768'
comment: ''
filter: ''
filter_source: '''Auto'''
fpass: samp_rate/4
frequency: '2400000000'
fstop: samp_rate/3
gain1: '''slow_attack'''
len_tag_key: packet_len
manual_gain1: '64'
maxoutbuf: '0'
minoutbuf: '0'
quadrature: 'True'
rfdc: 'True'
samplerate: samp_rate
uri: uri
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [168, 524.0]
rotation: 0
state: enabled
- name: qtgui_freq_sink_x_0
id: qtgui_freq_sink_x
parameters:
affinity: ''
alias: ''
alpha1: '1.0'
alpha10: '1.0'
alpha2: '1.0'
alpha3: '1.0'
alpha4: '1.0'
alpha5: '1.0'
alpha6: '1.0'
alpha7: '1.0'
alpha8: '1.0'
alpha9: '1.0'
autoscale: 'False'
average: '1.0'
axislabels: 'True'
bw: samp_rate
color1: '"blue"'
color10: '"dark blue"'
color2: '"red"'
color3: '"green"'
color4: '"black"'
color5: '"cyan"'
color6: '"magenta"'
color7: '"yellow"'
color8: '"dark red"'
color9: '"dark green"'
comment: ''
ctrlpanel: 'False'
fc: '0'
fftsize: '1024'
freqhalf: 'True'
grid: 'False'
gui_hint: ''
label: Relative Gain
label1: ''
label10: ''''''
label2: ''''''
label3: ''''''
label4: ''''''
label5: ''''''
label6: ''''''
label7: ''''''
label8: ''''''
label9: ''''''
legend: 'True'
maxoutbuf: '0'
minoutbuf: '0'
name: '""'
nconnections: '1'
norm_window: 'False'
showports: 'False'
tr_chan: '0'
tr_level: '0.0'
tr_mode: qtgui.TRIG_MODE_FREE
tr_tag: '""'
type: complex
units: dB
update_time: '0.10'
width1: '1'
width10: '1'
width2: '1'
width3: '1'
width4: '1'
width5: '1'
width6: '1'
width7: '1'
width8: '1'
width9: '1'
wintype: window.WIN_BLACKMAN_hARRIS
ymax: '0'
ymin: '-100'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [552, 684.0]
rotation: 0
state: enabled
- name: qtgui_time_sink_x_0
id: qtgui_time_sink_x
parameters:
affinity: ''
alias: ''
alpha1: '1.0'
alpha10: '1.0'
alpha2: '1.0'
alpha3: '1.0'
alpha4: '1.0'
alpha5: '1.0'
alpha6: '1.0'
alpha7: '1.0'
alpha8: '1.0'
alpha9: '1.0'
autoscale: 'False'
axislabels: 'True'
color1: blue
color10: dark blue
color2: red
color3: green
color4: black
color5: cyan
color6: magenta
color7: yellow
color8: dark red
color9: dark green
comment: ''
ctrlpanel: 'False'
entags: 'False'
grid: 'False'
gui_hint: ''
label1: Signal 1
label10: Signal 10
label2: Signal 2
label3: Signal 3
label4: Signal 4
label5: Signal 5
label6: Signal 6
label7: Signal 7
label8: Signal 8
label9: Signal 9
legend: 'True'
marker1: '-1'
marker10: '-1'
marker2: '-1'
marker3: '-1'
marker4: '-1'
marker5: '-1'
marker6: '-1'
marker7: '-1'
marker8: '-1'
marker9: '-1'
name: '""'
nconnections: '1'
size: '1024'
srate: samp_rate
stemplot: 'False'
style1: '1'
style10: '1'
style2: '1'
style3: '1'
style4: '1'
style5: '1'
style6: '1'
style7: '1'
style8: '1'
style9: '1'
tr_chan: '0'
tr_delay: '0'
tr_level: '0.0'
tr_mode: qtgui.TRIG_MODE_FREE
tr_slope: qtgui.TRIG_SLOPE_POS
tr_tag: '""'
type: complex
update_time: '0.10'
width1: '1'
width10: '1'
width2: '1'
width3: '1'
width4: '1'
width5: '1'
width6: '1'
width7: '1'
width8: '1'
width9: '1'
ylabel: Amplitude
ymax: '1'
ymin: '-1'
yunit: '""'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [552, 604.0]
rotation: 0
state: enabled
- name: qtgui_time_sink_x_0_0
id: qtgui_time_sink_x
parameters:
affinity: ''
alias: ''
alpha1: '1.0'
alpha10: '1.0'
alpha2: '1.0'
alpha3: '1.0'
alpha4: '1.0'
alpha5: '1.0'
alpha6: '1.0'
alpha7: '1.0'
alpha8: '1.0'
alpha9: '1.0'
autoscale: 'False'
axislabels: 'True'
color1: blue
color10: dark blue
color2: red
color3: green
color4: black
color5: cyan
color6: magenta
color7: yellow
color8: dark red
color9: dark green
comment: ''
ctrlpanel: 'False'
entags: 'True'
grid: 'False'
gui_hint: ''
label1: Y axis
label10: Signal 10
label2: X axis
label3: Signal 3
label4: Signal 4
label5: Signal 5
label6: Signal 6
label7: Signal 7
label8: Signal 8
label9: Signal 9
legend: 'True'
marker1: '-1'
marker10: '-1'
marker2: '-1'
marker3: '-1'
marker4: '-1'
marker5: '-1'
marker6: '-1'
marker7: '-1'
marker8: '-1'
marker9: '-1'
name: '""'
nconnections: '1'
size: '8'
srate: samp_rate2
stemplot: 'False'
style1: '1'
style10: '1'
style2: '1'
style3: '1'
style4: '1'
style5: '1'
style6: '1'
style7: '1'
style8: '1'
style9: '1'
tr_chan: '0'
tr_delay: '0'
tr_level: '0.0'
tr_mode: qtgui.TRIG_MODE_FREE
tr_slope: qtgui.TRIG_SLOPE_POS
tr_tag: '""'
type: complex
update_time: '0.10'
width1: '1'
width10: '1'
width2: '1'
width3: '1'
width4: '1'
width5: '1'
width6: '1'
width7: '1'
width8: '1'
width9: '1'
ylabel: Joystick X/Y axes
ymax: '2'
ymin: '0'
yunit: '""'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [704, 500.0]
rotation: 180
state: enabled
connections:
- [analog_sig_source_x_0, '0', blocks_multiply_xx_0, '0']
- [analog_sig_source_x_0_0, '0', blocks_multiply_xx_0_0, '1']
- [analog_sig_source_x_0_1, '0', blocks_complex_to_interleaved_short_0, '0']
- [analog_sig_source_x_0_1, '0', iio_pluto_sink_0, '0']
- [blocks_add_xx_0, '0', iio_pluto_sink_0, '0']
- [blocks_complex_to_interleaved_short_0, '0', blocks_deinterleave_0, '0']
- [blocks_deinterleave_0, '0', iio_device_sink_0, '0']
- [blocks_deinterleave_0, '1', iio_device_sink_0, '1']
- [blocks_float_to_complex_0, '0', blocks_multiply_xx_0, '1']
- [blocks_float_to_complex_0_0, '0', blocks_multiply_xx_0_0, '0']
- [blocks_interleave_0, '0', blocks_interleaved_short_to_complex_0, '0']
- [blocks_interleaved_short_to_complex_0, '0', qtgui_time_sink_x_0_0, '0']
- [blocks_multiply_xx_0, '0', blocks_add_xx_0, '0']
- [blocks_multiply_xx_0_0, '0', blocks_add_xx_0, '1']
- [blocks_repeat_0, '0', blocks_short_to_float_0, '0']
- [blocks_repeat_0_0, '0', blocks_short_to_float_0_0, '0']
- [blocks_short_to_float_0, '0', blocks_float_to_complex_0, '0']
- [blocks_short_to_float_0_0, '0', blocks_float_to_complex_0_0, '0']
- [iio_attr_updater_0, out, iio_attr_sink_0, attr]
- [iio_device_source_0, '0', blocks_interleave_0, '0']
- [iio_device_source_0, '0', blocks_repeat_0, '0']
- [iio_device_source_0, '1', blocks_interleave_0, '1']
- [iio_device_source_0, '1', blocks_repeat_0_0, '0']
- [iio_pluto_source_0, '0', qtgui_freq_sink_x_0, '0']
- [iio_pluto_source_0, '0', qtgui_time_sink_x_0, '0']
metadata:
file_format: 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment