options: parameters: author: J. Gilbert catch_exceptions: 'True' category: '[GRC Hier Blocks]' cmake_opt: '' comment: '' copyright: 2021 J. Gilbert description: Simple example of Tags to PDU block usage gen_cmake: 'On' gen_linking: dynamic generate_options: qt_gui hier_block_src_path: '.:' id: tags_to_pdu_example 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: Tags to PDU Example Flowgraph states: bus_sink: false bus_source: false bus_structure: null coordinate: [16, 12.0] rotation: 0 state: enabled blocks: - name: samp_rate id: variable parameters: comment: '' value: '100000' states: bus_sink: false bus_source: false bus_structure: null coordinate: [200, 12.0] rotation: 0 state: enabled - name: add 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: [1160, 104.0] rotation: 0 state: true - name: blocks_delay_0 id: blocks_delay parameters: affinity: '' alias: '' comment: '' delay: '500' maxoutbuf: '0' minoutbuf: '0' num_ports: '1' type: complex vlen: '1' states: bus_sink: false bus_source: false bus_structure: null coordinate: [248, 320.0] rotation: 0 state: true - name: c2r id: blocks_complex_to_real parameters: affinity: '' alias: '' comment: '' maxoutbuf: '0' minoutbuf: '0' vlen: '1' states: bus_sink: false bus_source: false bus_structure: null coordinate: [224, 516.0] rotation: 0 state: true - name: f2c 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: [672, 208.0] rotation: 0 state: true - name: f2s id: blocks_float_to_short parameters: affinity: '' alias: '' comment: '' maxoutbuf: '0' minoutbuf: '0' scale: '1' vlen: '1' states: bus_sink: false bus_source: false bus_structure: null coordinate: [848, 388.0] rotation: 0 state: true - name: fm id: analog_frequency_modulator_fc parameters: affinity: '' alias: '' comment: '' maxoutbuf: '0' minoutbuf: '0' sensitivity: '2' states: bus_sink: false bus_source: false bus_structure: null coordinate: [768, 76.0] rotation: 0 state: true - name: fns id: analog_fastnoise_source_x parameters: affinity: '' alias: '' amp: '.01' comment: '' maxoutbuf: '0' minoutbuf: '0' noise_type: analog.GR_GAUSSIAN samples: '8192' seed: '0' type: complex states: bus_sink: false bus_source: false bus_structure: null coordinate: [896, 188.0] rotation: 0 state: true - name: m2 id: blocks_complex_to_mag_squared parameters: affinity: '' alias: '' comment: '' maxoutbuf: '0' minoutbuf: '0' vlen: '1' states: bus_sink: false bus_source: false bus_structure: null coordinate: [224, 396.0] rotation: 0 state: true - name: ma id: blocks_moving_average_xx parameters: affinity: '' alias: '' comment: '' length: '1000' max_iter: '4000' maxoutbuf: '0' minoutbuf: '0' scale: 1/1000.0 type: float vlen: '1' states: bus_sink: false bus_source: false bus_structure: null coordinate: [464, 364.0] rotation: 0 state: true - name: msg_dbg id: blocks_message_debug parameters: affinity: '' alias: '' comment: '' en_uvec: 'False' states: bus_sink: false bus_source: false bus_structure: null coordinate: [800, 624.0] rotation: 0 state: true - name: mult 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: [960, 88.0] rotation: 0 state: true - name: note id: note parameters: alias: '' comment: 'This flowgraph will generate bursty upchirps and will convert them to PDUs by tagging them based on amplitude and converting using the Tags to PDU block.' note: README states: bus_sink: false bus_source: false bus_structure: null coordinate: [40, 644.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: '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: '2' size: '102400' 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: 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: [464, 476.0] rotation: 0 state: true - name: qtgui_waterfall_sink_x_0 id: qtgui_waterfall_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' axislabels: 'True' bw: samp_rate color1: '0' color10: '0' color2: '0' color3: '0' color4: '0' color5: '0' color6: '0' color7: '0' color8: '0' color9: '0' comment: '' fc: '0' fftsize: '128' freqhalf: 'True' grid: 'False' gui_hint: 0,1,1,1 int_max: '10' int_min: '-140' label1: '' label10: '' label2: '' label3: '' label4: '' label5: '' label6: '' label7: '' label8: '' label9: '' legend: 'True' maxoutbuf: '0' minoutbuf: '0' name: '""' nconnections: '1' showports: 'False' type: complex update_time: '0.002' wintype: window.WIN_BLACKMAN_hARRIS states: bus_sink: false bus_source: false bus_structure: null coordinate: [1216, 628.0] rotation: 0 state: true - name: rand id: analog_random_source_x parameters: affinity: '' alias: '' comment: '' max: '2' maxoutbuf: '0' min: '0' minoutbuf: '0' num_samps: '10000' repeat: 'True' type: short states: bus_sink: false bus_source: false bus_structure: null coordinate: [32, 172.0] rotation: 0 state: true - name: rep id: blocks_repeat parameters: affinity: '' alias: '' comment: '' interp: '10240' maxoutbuf: '0' minoutbuf: '0' type: short vlen: '1' states: bus_sink: false bus_source: false bus_structure: null coordinate: [248, 196.0] rotation: 0 state: true - name: s2f id: blocks_short_to_float parameters: affinity: '' alias: '' comment: '' maxoutbuf: '0' minoutbuf: '0' scale: '1' vlen: '1' states: bus_sink: false bus_source: false bus_structure: null coordinate: [472, 196.0] rotation: 0 state: true - name: sig id: analog_sig_source_x parameters: affinity: '' alias: '' amp: '1' comment: '' freq: '10' maxoutbuf: '0' minoutbuf: '0' offset: '-0.5' phase: '0' samp_rate: samp_rate type: float waveform: analog.GR_TRI_WAVE states: bus_sink: false bus_source: false bus_structure: null coordinate: [336, 36.0] rotation: 0 state: true - name: tagger id: blocks_burst_tagger parameters: affinity: '' alias: '' comment: '' false_key: EOB false_value: 'False' maxoutbuf: '0' minoutbuf: '0' true_key: SOB true_value: 'True' type: complex states: bus_sink: false bus_source: false bus_structure: null coordinate: [1088, 316.0] rotation: 0 state: true - name: tags_to_pdu id: pdu_tags_to_pdu_x parameters: affinity: '' alias: '' boost_time: 'True' cfg_port: 'False' comment: '' end_tag: EOB eob_alignment: '1' eob_offset: '0' max_pdu_size: '1024000' maxoutbuf: '0' minoutbuf: '0' prepend: '[]' pub_det: 'False' rate: samp_rate start_tag: SOB start_time: '1.0' tail_size: '0' type: c states: bus_sink: false bus_source: false bus_structure: null coordinate: [528, 716.0] rotation: 0 state: enabled - name: thresh id: blocks_threshold_ff parameters: affinity: '' alias: '' comment: '' high: '0.1' init: '0' low: '0.08' maxoutbuf: '0' minoutbuf: '0' states: bus_sink: false bus_source: false bus_structure: null coordinate: [672, 372.0] rotation: 0 state: enabled - name: throttle id: blocks_throttle parameters: affinity: '' alias: '' comment: '' ignoretag: 'True' maxoutbuf: '0' minoutbuf: '0' samples_per_second: samp_rate type: float vlen: '1' states: bus_sink: false bus_source: false bus_structure: null coordinate: [584, 76.0] rotation: 0 state: true - name: time_sink 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: 0,0,1,1 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: '102400' 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: [1216, 724.0] rotation: 0 state: true - name: vs0 id: virtual_sink parameters: alias: '' comment: '' stream_id: in states: bus_sink: false bus_source: false bus_structure: null coordinate: [1288, 108.0] rotation: 0 state: true - name: vs1 id: virtual_source parameters: alias: '' comment: '' stream_id: in states: bus_sink: false bus_source: false bus_structure: null coordinate: [32, 388.0] rotation: 0 state: true - name: vs3 id: virtual_sink parameters: alias: '' comment: '' stream_id: tag states: bus_sink: false bus_source: false bus_structure: null coordinate: [1280, 340.0] rotation: 0 state: true - name: vs4 id: virtual_source parameters: alias: '' comment: '' stream_id: tag states: bus_sink: false bus_source: false bus_structure: null coordinate: [528, 652.0] rotation: 180 state: true - name: vs4_0 id: virtual_source parameters: alias: '' comment: '' stream_id: tag states: bus_sink: false bus_source: false bus_structure: null coordinate: [32, 508.0] rotation: 0 state: true - name: vs5 id: virtual_source parameters: alias: '' comment: '' stream_id: in states: bus_sink: false bus_source: false bus_structure: null coordinate: [1008, 644.0] rotation: 0 state: true - name: waterfall id: qtgui_waterfall_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' axislabels: 'True' bw: samp_rate color1: '0' color10: '0' color2: '0' color3: '0' color4: '0' color5: '0' color6: '0' color7: '0' color8: '0' color9: '0' comment: '' fc: '0' fftsize: '1024' freqhalf: 'True' grid: 'False' gui_hint: 0,2,1,1 int_max: '10' int_min: '-140' label1: '' label10: '' label2: '' label3: '' label4: '' label5: '' label6: '' label7: '' label8: '' label9: '' legend: 'True' maxoutbuf: '0' minoutbuf: '0' name: '""' nconnections: '1' showports: 'False' type: msg_complex update_time: '0.01' wintype: window.WIN_BLACKMAN_hARRIS states: bus_sink: false bus_source: false bus_structure: null coordinate: [800, 732.0] rotation: 0 state: true connections: - [add, '0', vs0, '0'] - [blocks_delay_0, '0', tagger, '0'] - [c2r, '0', qtgui_time_sink_x_0, '1'] - [f2c, '0', mult, '1'] - [f2s, '0', tagger, '1'] - [fm, '0', mult, '0'] - [fns, '0', add, '1'] - [m2, '0', ma, '0'] - [m2, '0', qtgui_time_sink_x_0, '0'] - [ma, '0', thresh, '0'] - [mult, '0', add, '0'] - [rand, '0', rep, '0'] - [rep, '0', s2f, '0'] - [s2f, '0', f2c, '0'] - [sig, '0', throttle, '0'] - [tagger, '0', vs3, '0'] - [tags_to_pdu, pdus, msg_dbg, print] - [tags_to_pdu, pdus, waterfall, in] - [thresh, '0', f2s, '0'] - [throttle, '0', fm, '0'] - [vs1, '0', blocks_delay_0, '0'] - [vs1, '0', m2, '0'] - [vs4, '0', tags_to_pdu, '0'] - [vs4_0, '0', c2r, '0'] - [vs5, '0', qtgui_waterfall_sink_x_0, '0'] - [vs5, '0', time_sink, '0'] metadata: file_format: 1