svxlink/gnuradio/trx_sim.grc

645 lines
13 KiB
Plaintext

options:
parameters:
author: SM0SVX
category: '[GRC Hier Blocks]'
cmake_opt: ''
comment: ''
copyright: ''
description: ''
gen_cmake: 'On'
gen_linking: dynamic
generate_options: qt_gui
hier_block_src_path: '.:'
id: trx_sim
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: Trx Simulation
window_size: ''
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [8, 8]
rotation: 0
state: enabled
blocks:
- name: audio_gain
id: variable_qtgui_range
parameters:
comment: ''
gui_hint: ''
label: ''
min_len: '200'
orient: Qt.Horizontal
rangeType: float
start: '-50'
step: '1'
stop: '50'
value: '0'
widget: counter_slider
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [640, 12.0]
rotation: 0
state: true
- name: audio_input
id: variable_qtgui_chooser
parameters:
comment: ''
gui_hint: ''
label: Input Select
label0: Generator
label1: File
label2: Mike
label3: ''
label4: ''
labels: '[]'
num_opts: '3'
option0: '0'
option1: '1'
option2: '2'
option3: '3'
option4: '4'
options: '[0, 1, 2]'
orient: Qt.QVBoxLayout
type: int
value: '0'
widget: combo_box
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [752, 12.0]
rotation: 0
state: true
- name: noise_level
id: variable_qtgui_range
parameters:
comment: ''
gui_hint: ''
label: ''
min_len: '200'
orient: Qt.Horizontal
rangeType: float
start: '-100'
step: '1'
stop: '0'
value: '-100'
widget: counter_slider
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [512, 12.0]
rotation: 0
state: true
- name: samp_rate
id: variable
parameters:
comment: ''
value: '16000'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [184, 12]
rotation: 0
state: enabled
- name: tone_amp
id: variable_qtgui_range
parameters:
comment: ''
gui_hint: ''
label: ''
min_len: '200'
orient: Qt.Horizontal
rangeType: float
start: '-50'
step: '1'
stop: '0'
value: '-20'
widget: counter_slider
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [392, 12.0]
rotation: 0
state: true
- name: tone_fq
id: variable_qtgui_range
parameters:
comment: ''
gui_hint: ''
label: ''
min_len: '200'
orient: Qt.Horizontal
rangeType: float
start: '50'
step: '10'
stop: '7000'
value: '1000'
widget: counter_slider
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [272, 12.0]
rotation: 0
state: true
- name: analog_noise_source_x_0
id: analog_noise_source_x
parameters:
affinity: ''
alias: ''
amp: pow(10, (noise_level+30)/20)
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
noise_type: analog.GR_GAUSSIAN
seed: '0'
type: float
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [24, 268.0]
rotation: 0
state: enabled
- name: analog_sig_source_x_0
id: analog_sig_source_x
parameters:
affinity: ''
alias: ''
amp: pow(10, tone_amp/20)
comment: ''
freq: tone_fq
maxoutbuf: '0'
minoutbuf: '0'
offset: '0'
phase: '0'
samp_rate: samp_rate
type: float
waveform: analog.GR_COS_WAVE
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [24, 140.0]
rotation: 0
state: enabled
- name: audio_sink_0
id: audio_sink
parameters:
affinity: ''
alias: ''
comment: ''
device_name: sysdefault
num_inputs: '1'
ok_to_block: 'True'
samp_rate: samp_rate
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [552, 612.0]
rotation: 0
state: enabled
- name: audio_source_0
id: audio_source
parameters:
affinity: ''
alias: ''
comment: ''
device_name: sysdefault
maxoutbuf: '0'
minoutbuf: '0'
num_outputs: '1'
ok_to_block: 'True'
samp_rate: samp_rate
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [24, 460.0]
rotation: 0
state: enabled
- name: blocks_add_xx_0
id: blocks_add_xx
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
num_inputs: '2'
type: float
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [264, 256.0]
rotation: 0
state: enabled
- name: blocks_file_source_0
id: blocks_file_source
parameters:
affinity: ''
alias: ''
begin_tag: pmt.PMT_NIL
comment: ''
file: file
length: '0'
maxoutbuf: '0'
minoutbuf: '0'
offset: '0'
repeat: 'True'
type: float
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [24, 348.0]
rotation: 0
state: true
- name: blocks_float_to_short_0_1_0
id: blocks_float_to_short
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
scale: '32767'
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [448, 276.0]
rotation: 180
state: enabled
- name: blocks_keep_m_in_n_0
id: blocks_keep_m_in_n
parameters:
affinity: ''
alias: ''
comment: ''
m: '1'
maxoutbuf: '0'
minoutbuf: '0'
n: '2'
offset: '0'
type: short
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [208, 588.0]
rotation: 0
state: enabled
- name: blocks_multiply_const_vxx_0_1
id: blocks_multiply_const_vxx
parameters:
affinity: ''
alias: ''
comment: ''
const: pow(10, audio_gain/20)
maxoutbuf: '0'
minoutbuf: '0'
type: float
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [576, 396.0]
rotation: 0
state: true
- name: blocks_selector_0
id: blocks_selector
parameters:
affinity: ''
alias: ''
comment: ''
enabled: 'True'
input_index: audio_input
maxoutbuf: '0'
minoutbuf: '0'
num_inputs: '3'
num_outputs: '1'
output_index: '0'
showports: 'True'
type: float
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [392, 352.0]
rotation: 0
state: true
- name: blocks_short_to_float_0
id: blocks_short_to_float
parameters:
affinity: ''
alias: ''
comment: ''
maxoutbuf: '0'
minoutbuf: '0'
scale: '32767'
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [360, 604.0]
rotation: 0
state: enabled
- name: blocks_stream_mux_0
id: blocks_stream_mux
parameters:
affinity: ''
alias: ''
comment: ''
lengths: '[1, 1]'
maxoutbuf: '0'
minoutbuf: '0'
num_inputs: '2'
type: float
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [592, 264.0]
rotation: 180
state: enabled
- name: blocks_udp_sink_0
id: blocks_udp_sink
parameters:
affinity: ''
alias: ''
comment: ''
eof: 'False'
ipaddr: 127.0.0.1
port: '9000'
psize: '1472'
type: short
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [448, 148.0]
rotation: 0
state: enabled
- name: blocks_udp_source_0
id: blocks_udp_source
parameters:
affinity: ''
alias: ''
comment: ''
eof: 'False'
ipaddr: 127.0.0.1
maxoutbuf: '0'
minoutbuf: '0'
port: '9001'
psize: '4096'
type: short
vlen: '1'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [24, 580.0]
rotation: 0
state: enabled
- name: file
id: parameter
parameters:
alias: ''
comment: ''
hide: none
label: File
short_id: f
type: str
value: /dev/zero
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [872, 12.0]
rotation: 0
state: true
- 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: '2048'
freqhalf: 'False'
grid: 'True'
gui_hint: ''
label: Relative Gain
label1: ''
label10: ''''''
label2: ''''''
label3: ''''''
label4: ''''''
label5: ''''''
label6: ''''''
label7: ''''''
label8: ''''''
label9: ''''''
legend: 'False'
maxoutbuf: '0'
minoutbuf: '0'
name: '""'
nconnections: '1'
showports: 'False'
tr_chan: '0'
tr_level: '0.0'
tr_mode: qtgui.TRIG_MODE_FREE
tr_tag: '""'
type: float
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: firdes.WIN_BLACKMAN_hARRIS
ymax: '10'
ymin: '-110'
states:
bus_sink: false
bus_source: false
bus_structure: null
coordinate: [552, 504.0]
rotation: 0
state: true
- 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: 'True'
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: 'False'
marker1: '-1'
marker10: '-1'
marker2: '-1'
marker3: '-1'
marker4: '-1'
marker5: '-1'
marker6: '-1'
marker7: '-1'
marker8: '-1'
marker9: '-1'
name: '""'
nconnections: '1'
size: '8192'
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_AUTO
tr_slope: qtgui.TRIG_SLOPE_POS
tr_tag: '""'
type: float
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, 684.0]
rotation: 0
state: true
connections:
- [analog_noise_source_x_0, '0', blocks_add_xx_0, '1']
- [analog_sig_source_x_0, '0', blocks_add_xx_0, '0']
- [audio_source_0, '0', blocks_selector_0, '2']
- [blocks_add_xx_0, '0', blocks_selector_0, '0']
- [blocks_file_source_0, '0', blocks_selector_0, '1']
- [blocks_float_to_short_0_1_0, '0', blocks_udp_sink_0, '0']
- [blocks_keep_m_in_n_0, '0', blocks_short_to_float_0, '0']
- [blocks_multiply_const_vxx_0_1, '0', blocks_stream_mux_0, '0']
- [blocks_multiply_const_vxx_0_1, '0', blocks_stream_mux_0, '1']
- [blocks_selector_0, '0', blocks_multiply_const_vxx_0_1, '0']
- [blocks_short_to_float_0, '0', audio_sink_0, '0']
- [blocks_short_to_float_0, '0', qtgui_freq_sink_x_0, '0']
- [blocks_short_to_float_0, '0', qtgui_time_sink_x_0, '0']
- [blocks_stream_mux_0, '0', blocks_float_to_short_0_1_0, '0']
- [blocks_udp_source_0, '0', blocks_keep_m_in_n_0, '0']
metadata:
file_format: 1