examples: rfnoc-gain: Add GRC examples dir

In a previous commit, these files where forgotten and are now added
back. This file is referred to in the CMakeLists.txt, so it is expected,
and its absence will cause a failure during installation.
This commit is contained in:
Martin Braun 2025-04-14 11:15:43 +02:00 committed by Jörg Hofrichter
parent d659a024be
commit fb06a82316
2 changed files with 411 additions and 0 deletions

View File

@ -0,0 +1 @@
*.py

View File

@ -0,0 +1,410 @@
options:
parameters:
author: Martin Braun <martin.braun@ettus.com>
catch_exceptions: 'True'
category: '[GRC Hier Blocks]'
cmake_opt: ''
comment: ''
copyright: Copyright 2024 Ettus Research, an NI Brand
description: Showcases the RFNoC Gain block in a GNU Radio flow graph.
gen_cmake: 'On'
gen_linking: dynamic
generate_options: qt_gui
hier_block_src_path: '.:'
id: rfnoc_rx_gain
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: RFNoC Gain Example
window_size: (1000,1000)
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [8, 8]
rotation: 0
state: enabled
blocks:
- name: freq
id: variable_qtgui_range
parameters:
comment: ''
gui_hint: ''
label: Frequency (Hz)
min_len: '200'
orient: QtCore.Qt.Horizontal
rangeType: float
start: '0'
step: 1e6
stop: 6e9
value: 1e9
widget: counter_slider
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [976, 20.0]
rotation: 0
state: enabled
- name: gain
id: variable_qtgui_range
parameters:
comment: ''
gui_hint: ''
label: Gain (dB)
min_len: '200'
orient: QtCore.Qt.Horizontal
rangeType: float
start: '0'
step: '1'
stop: '80'
value: '30'
widget: counter_slider
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [856, 20.0]
rotation: 0
state: enabled
- name: samp_rate
id: variable
parameters:
comment: ''
value: 1.2288e6
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [200, 12]
rotation: 0
state: enabled
- name: uhd_rfnoc_graph_0
id: uhd_rfnoc_graph
parameters:
alias: ''
clock_source: ''
comment: ''
dev_addr: args
dev_args: ''
num_mboards: '1'
time_source: ''
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [328, 20.0]
rotation: 0
state: enabled
- name: args
id: parameter
parameters:
alias: ''
comment: ''
hide: none
label: Device Args
short_id: ''
type: str
value: addr=192.168.178.52
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [528, 20.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: 'True'
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: [1168, 204.0]
rotation: 0
state: enabled
- name: radio_rate
id: parameter
parameters:
alias: ''
comment: ''
hide: none
label: Radio Sampling Rate
short_id: R
type: eng_float
value: 245.76e6
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [688, 20.0]
rotation: 0
state: enabled
- name: rfnoc_gain_gain_generic_0
id: rfnoc_gain_gain_generic
parameters:
affinity: ''
alias: ''
comment: ''
device_select: '-1'
gain: '10'
instance_index: '-1'
maxoutbuf: '0'
minoutbuf: '0'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [680, 220.0]
rotation: 0
state: disabled
- name: rfnoc_gain_gain_native_0
id: rfnoc_gain_gain_native
parameters:
affinity: ''
alias: ''
comment: ''
device_select: '-1'
gain: '100'
instance_index: '-1'
maxoutbuf: '0'
minoutbuf: '0'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [656, 308.0]
rotation: 0
state: enabled
- name: uhd_rfnoc_ddc_0
id: uhd_rfnoc_ddc
parameters:
affinity: ''
alias: ''
block_args: ''
comment: ''
device_select: '-1'
freq0: '0'
freq1: '0'
freq2: '0'
freq3: '0'
instance_index: '-1'
maxoutbuf: '0'
minoutbuf: '0'
num_chans: '1'
output_rate0: samp_rate
output_rate1: '0'
output_rate2: '0'
output_rate3: '0'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [376, 212.0]
rotation: 0
state: enabled
- name: uhd_rfnoc_rx_radio_0
id: uhd_rfnoc_rx_radio
parameters:
affinity: ''
alias: ''
antenna0: RX2
antenna1: RX2
antenna2: RX2
antenna3: RX2
bandwidth0: '0'
bandwidth1: '0'
bandwidth2: '0'
bandwidth3: '0'
block_args: ''
comment: ''
dc_offset0: 'False'
dc_offset1: 'False'
dc_offset2: 'False'
dc_offset3: 'False'
device_select: '-1'
enable_timestamps0: 'True'
enable_timestamps1: 'True'
enable_timestamps2: 'True'
enable_timestamps3: 'True'
frequency0: freq
frequency1: 1e9
frequency2: 1e9
frequency3: 1e9
gain0: gain
gain1: '0'
gain2: '0'
gain3: '0'
instance_index: '-1'
iq_balance0: 'False'
iq_balance1: 'False'
iq_balance2: 'False'
iq_balance3: 'False'
maxoutbuf: '0'
minoutbuf: '0'
num_chans: '1'
rate: radio_rate
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [96, 172.0]
rotation: 0
state: enabled
- name: uhd_rfnoc_rx_streamer_0
id: uhd_rfnoc_rx_streamer
parameters:
adapter_id_list: '[0]'
affinity: ''
alias: ''
args: ''
comment: ''
issue_stream_cmd: 'True'
maxoutbuf: '0'
minoutbuf: '0'
num_chans: '1'
otw: sc16
output_type: fc32
start_time: '0'
start_time_set: 'False'
use_default_adapter_id: 'True'
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [976, 220.0]
rotation: 0
state: enabled
connections:
- params:
is_back_edge: 'False'
snk_blk_id: uhd_rfnoc_rx_streamer_0
snk_port_id: '0'
src_blk_id: rfnoc_gain_gain_generic_0
src_port_id: '0'
- params:
is_back_edge: 'False'
snk_blk_id: uhd_rfnoc_rx_streamer_0
snk_port_id: '0'
src_blk_id: rfnoc_gain_gain_native_0
src_port_id: '0'
- params:
is_back_edge: 'False'
snk_blk_id: rfnoc_gain_gain_generic_0
snk_port_id: '0'
src_blk_id: uhd_rfnoc_ddc_0
src_port_id: '0'
- params:
is_back_edge: 'False'
snk_blk_id: rfnoc_gain_gain_native_0
snk_port_id: '0'
src_blk_id: uhd_rfnoc_ddc_0
src_port_id: '0'
- params:
is_back_edge: 'False'
snk_blk_id: uhd_rfnoc_ddc_0
snk_port_id: '0'
src_blk_id: uhd_rfnoc_rx_radio_0
src_port_id: '0'
- [uhd_rfnoc_rx_streamer_0, '0', qtgui_time_sink_x_0, '0']
metadata:
file_format: 2
grc_version: v3.11.0.0git-799-g2a8b58ca