summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Demel <demel@uni-bremen.de>2019-01-20 13:03:50 +0100
committerMartin Braun <martin.braun@ettus.com>2019-01-21 10:50:11 -0800
commit5e44a754b9043e9a569a2bad504a6c2251dc743b (patch)
tree64dc12ecdef2d01adb498b816fe534220f3a8517
parent855dd55ebefefb1421bd3b5d1e4fa73347616ebe (diff)
blocks: Convert GRC examples/msg_passing to YAML format
This commit converts the examples in `gr-blocks` to the new YAML format. This conversion is tracked in #2285. The flowgraphs in `examples/msg_passing/hier` are converted as well, though hier block generations seems to be broken. In order to load `test_msg_hier_topblock.grc` it is necessary to: 1. Open and generate `test_msg_hier.grc` manually 2. Update the generated `test_msg_hier.py.blocks.yml` in the system `.grc_gnuradio` folder. The input and output IDs are not unique. All inputs are named `out0` all outputs `in0`. Rename the second input and output to end in `1` in order to make things work.
-rw-r--r--gr-blocks/examples/msg_passing/hier/test_msg_hier.grc420
-rw-r--r--gr-blocks/examples/msg_passing/hier/test_msg_hier_topblock.grc276
-rw-r--r--gr-blocks/examples/msg_passing/strobe.grc471
3 files changed, 347 insertions, 820 deletions
diff --git a/gr-blocks/examples/msg_passing/hier/test_msg_hier.grc b/gr-blocks/examples/msg_passing/hier/test_msg_hier.grc
index 4fa8a18d83..9c69ee5901 100644
--- a/gr-blocks/examples/msg_passing/hier/test_msg_hier.grc
+++ b/gr-blocks/examples/msg_passing/hier/test_msg_hier.grc
@@ -1,287 +1,133 @@
-<?xml version='1.0' encoding='ASCII'?>
-<flow_graph>
- <timestamp>Mon Dec 10 19:56:24 2012</timestamp>
- <block>
- <key>options</key>
- <param>
- <key>id</key>
- <value>test_msg_hier</value>
- </param>
- <param>
- <key>_enabled</key>
- <value>True</value>
- </param>
- <param>
- <key>title</key>
- <value></value>
- </param>
- <param>
- <key>author</key>
- <value></value>
- </param>
- <param>
- <key>description</key>
- <value></value>
- </param>
- <param>
- <key>window_size</key>
- <value>1280, 1024</value>
- </param>
- <param>
- <key>generate_options</key>
- <value>hb</value>
- </param>
- <param>
- <key>category</key>
- <value>Custom</value>
- </param>
- <param>
- <key>run_options</key>
- <value>prompt</value>
- </param>
- <param>
- <key>run</key>
- <value>True</value>
- </param>
- <param>
- <key>max_nouts</key>
- <value>0</value>
- </param>
- <param>
- <key>realtime_scheduling</key>
- <value></value>
- </param>
- <param>
- <key>_coordinate</key>
- <value>(10, 10)</value>
- </param>
- <param>
- <key>_rotation</key>
- <value>0</value>
- </param>
- </block>
- <block>
- <key>pad_source</key>
- <param>
- <key>id</key>
- <value>pad_source_0</value>
- </param>
- <param>
- <key>_enabled</key>
- <value>True</value>
- </param>
- <param>
- <key>label</key>
- <value>TEST_PORT</value>
- </param>
- <param>
- <key>type</key>
- <value>message</value>
- </param>
- <param>
- <key>vlen</key>
- <value>1</value>
- </param>
- <param>
- <key>optional</key>
- <value>False</value>
- </param>
- <param>
- <key>_coordinate</key>
- <value>(234, 145)</value>
- </param>
- <param>
- <key>_rotation</key>
- <value>0</value>
- </param>
- </block>
- <block>
- <key>pad_source</key>
- <param>
- <key>id</key>
- <value>pad_source_0_0</value>
- </param>
- <param>
- <key>_enabled</key>
- <value>True</value>
- </param>
- <param>
- <key>label</key>
- <value>TEST_PORT2</value>
- </param>
- <param>
- <key>type</key>
- <value>message</value>
- </param>
- <param>
- <key>vlen</key>
- <value>1</value>
- </param>
- <param>
- <key>optional</key>
- <value>False</value>
- </param>
- <param>
- <key>_coordinate</key>
- <value>(167, 54)</value>
- </param>
- <param>
- <key>_rotation</key>
- <value>0</value>
- </param>
- </block>
- <block>
- <key>blocks_message_strobe</key>
- <param>
- <key>id</key>
- <value>blocks_message_strobe_0</value>
- </param>
- <param>
- <key>_enabled</key>
- <value>True</value>
- </param>
- <param>
- <key>msg</key>
- <value>pmt.cons(pmt.PMT_NIL, pmt.make_u8vector(16,0x77))</value>
- </param>
- <param>
- <key>period</key>
- <value>200</value>
- </param>
- <param>
- <key>_coordinate</key>
- <value>(362, 81)</value>
- </param>
- <param>
- <key>_rotation</key>
- <value>0</value>
- </param>
- </block>
- <block>
- <key>pad_sink</key>
- <param>
- <key>id</key>
- <value>pad_sink_0</value>
- </param>
- <param>
- <key>_enabled</key>
- <value>True</value>
- </param>
- <param>
- <key>label</key>
- <value>TEST_PORT</value>
- </param>
- <param>
- <key>type</key>
- <value>message</value>
- </param>
- <param>
- <key>vlen</key>
- <value>1</value>
- </param>
- <param>
- <key>optional</key>
- <value>True</value>
- </param>
- <param>
- <key>_coordinate</key>
- <value>(618, 87)</value>
- </param>
- <param>
- <key>_rotation</key>
- <value>0</value>
- </param>
- </block>
- <block>
- <key>blocks_message_strobe</key>
- <param>
- <key>id</key>
- <value>blocks_message_strobe_0_1</value>
- </param>
- <param>
- <key>_enabled</key>
- <value>True</value>
- </param>
- <param>
- <key>msg</key>
- <value>pmt.intern("OUTPUT2")</value>
- </param>
- <param>
- <key>period</key>
- <value>100</value>
- </param>
- <param>
- <key>_coordinate</key>
- <value>(400, 156)</value>
- </param>
- <param>
- <key>_rotation</key>
- <value>0</value>
- </param>
- </block>
- <block>
- <key>pad_sink</key>
- <param>
- <key>id</key>
- <value>pad_sink_0_0</value>
- </param>
- <param>
- <key>_enabled</key>
- <value>True</value>
- </param>
- <param>
- <key>label</key>
- <value>TEST_PORT3</value>
- </param>
- <param>
- <key>type</key>
- <value>message</value>
- </param>
- <param>
- <key>vlen</key>
- <value>1</value>
- </param>
- <param>
- <key>optional</key>
- <value>True</value>
- </param>
- <param>
- <key>_coordinate</key>
- <value>(695, 172)</value>
- </param>
- <param>
- <key>_rotation</key>
- <value>0</value>
- </param>
- </block>
- <connection>
- <source_block_id>pad_source_0_0</source_block_id>
- <sink_block_id>blocks_message_strobe_0</sink_block_id>
- <source_key>0</source_key>
- <sink_key>0</sink_key>
- </connection>
- <connection>
- <source_block_id>pad_source_0</source_block_id>
- <sink_block_id>blocks_message_strobe_0</sink_block_id>
- <source_key>0</source_key>
- <sink_key>0</sink_key>
- </connection>
- <connection>
- <source_block_id>blocks_message_strobe_0</source_block_id>
- <sink_block_id>pad_sink_0</sink_block_id>
- <source_key>0</source_key>
- <sink_key>0</sink_key>
- </connection>
- <connection>
- <source_block_id>blocks_message_strobe_0_1</source_block_id>
- <sink_block_id>pad_sink_0</sink_block_id>
- <source_key>0</source_key>
- <sink_key>0</sink_key>
- </connection>
- <connection>
- <source_block_id>blocks_message_strobe_0_1</source_block_id>
- <sink_block_id>pad_sink_0_0</sink_block_id>
- <source_key>0</source_key>
- <sink_key>0</sink_key>
- </connection>
-</flow_graph>
+options:
+ parameters:
+ author: ''
+ category: Custom
+ cmake_opt: ''
+ comment: ''
+ copyright: ''
+ description: ''
+ gen_cmake: 'On'
+ gen_linking: dynamic
+ generate_options: hb
+ hier_block_src_path: '.:'
+ id: test_msg_hier
+ 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: ''
+ window_size: 1280, 1024
+ states:
+ coordinate: [10, 10]
+ rotation: 0
+ state: enabled
+
+blocks:
+- name: blocks_message_strobe_0
+ id: blocks_message_strobe
+ parameters:
+ affinity: ''
+ alias: ''
+ comment: ''
+ maxoutbuf: ''
+ minoutbuf: ''
+ msg: pmt.cons(pmt.PMT_NIL, pmt.make_u8vector(16,0x77))
+ period: '200'
+ states:
+ coordinate: [362, 81]
+ rotation: 0
+ state: enabled
+- name: blocks_message_strobe_0_1
+ id: blocks_message_strobe
+ parameters:
+ affinity: ''
+ alias: ''
+ comment: ''
+ maxoutbuf: ''
+ minoutbuf: ''
+ msg: pmt.intern("OUTPUT2")
+ period: '100'
+ states:
+ coordinate: [400, 156]
+ rotation: 0
+ state: enabled
+- name: pad_sink_0
+ id: pad_sink
+ parameters:
+ affinity: ''
+ alias: ''
+ comment: ''
+ label: TEST_PORT0
+ num_streams: '1'
+ optional: 'True'
+ type: message
+ vlen: '1'
+ states:
+ coordinate: [618, 87]
+ rotation: 0
+ state: enabled
+- name: pad_sink_1
+ id: pad_sink
+ parameters:
+ affinity: ''
+ alias: ''
+ comment: ''
+ label: TEST_PORT3
+ num_streams: '1'
+ optional: 'True'
+ type: message
+ vlen: '1'
+ states:
+ coordinate: [695, 172]
+ rotation: 0
+ state: enabled
+- name: pad_source_0
+ id: pad_source
+ parameters:
+ affinity: ''
+ alias: ''
+ comment: ''
+ label: TEST_PORT2
+ maxoutbuf: ''
+ minoutbuf: ''
+ num_streams: '1'
+ optional: 'False'
+ type: message
+ vlen: '1'
+ states:
+ coordinate: [120, 100.0]
+ rotation: 0
+ state: enabled
+- name: pad_source_1
+ id: pad_source
+ parameters:
+ affinity: ''
+ alias: ''
+ comment: ''
+ label: TEST_PORT1
+ maxoutbuf: ''
+ minoutbuf: ''
+ num_streams: '1'
+ optional: 'False'
+ type: message
+ vlen: '1'
+ states:
+ coordinate: [120, 148.0]
+ rotation: 0
+ state: enabled
+
+connections:
+- [blocks_message_strobe_0, strobe, pad_sink_0, in0]
+- [blocks_message_strobe_0_1, strobe, pad_sink_0, in0]
+- [blocks_message_strobe_0_1, strobe, pad_sink_1, in0]
+- [pad_source_0, out0, blocks_message_strobe_0, set_msg]
+- [pad_source_1, out0, blocks_message_strobe_0, set_msg]
+
+metadata:
+ file_format: 1
diff --git a/gr-blocks/examples/msg_passing/hier/test_msg_hier_topblock.grc b/gr-blocks/examples/msg_passing/hier/test_msg_hier_topblock.grc
index 9cff22d6c8..688a81bc9d 100644
--- a/gr-blocks/examples/msg_passing/hier/test_msg_hier_topblock.grc
+++ b/gr-blocks/examples/msg_passing/hier/test_msg_hier_topblock.grc
@@ -1,185 +1,91 @@
-<?xml version='1.0' encoding='ASCII'?>
-<flow_graph>
- <timestamp>Mon Dec 10 19:56:42 2012</timestamp>
- <block>
- <key>options</key>
- <param>
- <key>id</key>
- <value>test_msg_hier_topblock</value>
- </param>
- <param>
- <key>_enabled</key>
- <value>True</value>
- </param>
- <param>
- <key>title</key>
- <value></value>
- </param>
- <param>
- <key>author</key>
- <value></value>
- </param>
- <param>
- <key>description</key>
- <value></value>
- </param>
- <param>
- <key>window_size</key>
- <value>1280, 1024</value>
- </param>
- <param>
- <key>generate_options</key>
- <value>no_gui</value>
- </param>
- <param>
- <key>category</key>
- <value>Custom</value>
- </param>
- <param>
- <key>run_options</key>
- <value>prompt</value>
- </param>
- <param>
- <key>run</key>
- <value>True</value>
- </param>
- <param>
- <key>max_nouts</key>
- <value>0</value>
- </param>
- <param>
- <key>realtime_scheduling</key>
- <value></value>
- </param>
- <param>
- <key>_coordinate</key>
- <value>(10, 10)</value>
- </param>
- <param>
- <key>_rotation</key>
- <value>0</value>
- </param>
- </block>
- <block>
- <key>blocks_message_strobe</key>
- <param>
- <key>id</key>
- <value>blocks_message_strobe_0_0</value>
- </param>
- <param>
- <key>_enabled</key>
- <value>True</value>
- </param>
- <param>
- <key>msg</key>
- <value>pmt.intern("UPDATED2")</value>
- </param>
- <param>
- <key>period</key>
- <value>3000</value>
- </param>
- <param>
- <key>_coordinate</key>
- <value>(51, 88)</value>
- </param>
- <param>
- <key>_rotation</key>
- <value>0</value>
- </param>
- </block>
- <block>
- <key>blocks_message_strobe</key>
- <param>
- <key>id</key>
- <value>blocks_message_strobe_0</value>
- </param>
- <param>
- <key>_enabled</key>
- <value>True</value>
- </param>
- <param>
- <key>msg</key>
- <value>pmt.intern("UPDATED")</value>
- </param>
- <param>
- <key>period</key>
- <value>2000</value>
- </param>
- <param>
- <key>_coordinate</key>
- <value>(211, 168)</value>
- </param>
- <param>
- <key>_rotation</key>
- <value>0</value>
- </param>
- </block>
- <block>
- <key>blocks_message_debug</key>
- <param>
- <key>id</key>
- <value>blocks_message_debug_0</value>
- </param>
- <param>
- <key>_enabled</key>
- <value>True</value>
- </param>
- <param>
- <key>_coordinate</key>
- <value>(758, 71)</value>
- </param>
- <param>
- <key>_rotation</key>
- <value>0</value>
- </param>
- </block>
- <block>
- <key>test_msg_hier</key>
- <param>
- <key>id</key>
- <value>test_msg_hier_0</value>
- </param>
- <param>
- <key>_enabled</key>
- <value>True</value>
- </param>
- <param>
- <key>_coordinate</key>
- <value>(402, 52)</value>
- </param>
- <param>
- <key>_rotation</key>
- <value>0</value>
- </param>
- </block>
- <connection>
- <source_block_id>test_msg_hier_0</source_block_id>
- <sink_block_id>blocks_message_debug_0</sink_block_id>
- <source_key>0</source_key>
- <sink_key>0</sink_key>
- </connection>
- <connection>
- <source_block_id>blocks_message_strobe_0</source_block_id>
- <sink_block_id>test_msg_hier_0</sink_block_id>
- <source_key>0</source_key>
- <sink_key>0</sink_key>
- </connection>
- <connection>
- <source_block_id>blocks_message_strobe_0_0</source_block_id>
- <sink_block_id>test_msg_hier_0</sink_block_id>
- <source_key>0</source_key>
- <sink_key>1</sink_key>
- </connection>
- <connection>
- <source_block_id>test_msg_hier_0</source_block_id>
- <sink_block_id>blocks_message_debug_0</sink_block_id>
- <source_key>0</source_key>
- <sink_key>1</sink_key>
- </connection>
- <connection>
- <source_block_id>test_msg_hier_0</source_block_id>
- <sink_block_id>blocks_message_debug_0</sink_block_id>
- <source_key>1</source_key>
- <sink_key>0</sink_key>
- </connection>
-</flow_graph>
+options:
+ parameters:
+ author: ''
+ category: Custom
+ cmake_opt: ''
+ comment: ''
+ copyright: ''
+ description: ''
+ gen_cmake: 'On'
+ gen_linking: dynamic
+ generate_options: no_gui
+ hier_block_src_path: '.:'
+ id: test_msg_hier_topblock
+ 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: ''
+ window_size: 1280, 1024
+ states:
+ coordinate: [10, 10]
+ rotation: 0
+ state: enabled
+
+blocks:
+- name: blocks_message_debug_0
+ id: blocks_message_debug
+ parameters:
+ affinity: ''
+ alias: ''
+ comment: ''
+ states:
+ coordinate: [672, 200.0]
+ rotation: 0
+ state: enabled
+- name: blocks_message_strobe_0
+ id: blocks_message_strobe
+ parameters:
+ affinity: ''
+ alias: ''
+ comment: ''
+ maxoutbuf: ''
+ minoutbuf: ''
+ msg: pmt.intern("UPDATED")
+ period: '2000'
+ states:
+ coordinate: [152, 188.0]
+ rotation: 0
+ state: enabled
+- name: blocks_message_strobe_0_0
+ id: blocks_message_strobe
+ parameters:
+ affinity: ''
+ alias: ''
+ comment: ''
+ maxoutbuf: ''
+ minoutbuf: ''
+ msg: pmt.intern("UPDATED2")
+ period: '3000'
+ states:
+ coordinate: [144, 252.0]
+ rotation: 0
+ state: enabled
+- name: test_msg_hier_0
+ id: test_msg_hier
+ parameters:
+ affinity: ''
+ alias: ''
+ comment: ''
+ maxoutbuf: ''
+ minoutbuf: ''
+ states:
+ coordinate: [400, 200.0]
+ rotation: 0
+ state: enabled
+
+connections:
+- [blocks_message_strobe_0, strobe, test_msg_hier_0, TEST_PORT2]
+- [blocks_message_strobe_0_0, strobe, test_msg_hier_0, TEST_PORT1]
+- [test_msg_hier_0, TEST_PORT0, blocks_message_debug_0, print]
+- [test_msg_hier_0, TEST_PORT0, blocks_message_debug_0, store]
+- [test_msg_hier_0, TEST_PORT3, blocks_message_debug_0, print]
+
+metadata:
+ file_format: 1
diff --git a/gr-blocks/examples/msg_passing/strobe.grc b/gr-blocks/examples/msg_passing/strobe.grc
index f24887ab76..e5208713ef 100644
--- a/gr-blocks/examples/msg_passing/strobe.grc
+++ b/gr-blocks/examples/msg_passing/strobe.grc
@@ -1,348 +1,123 @@
-<?xml version='1.0' encoding='ASCII'?>
-<?grc format='1' created='3.7.6'?>
-<flow_graph>
- <timestamp>Sun Mar 17 20:42:59 2013</timestamp>
- <block>
- <key>options</key>
- <param>
- <key>id</key>
- <value>strobe</value>
- </param>
- <param>
- <key>_enabled</key>
- <value>True</value>
- </param>
- <param>
- <key>title</key>
- <value></value>
- </param>
- <param>
- <key>author</key>
- <value></value>
- </param>
- <param>
- <key>description</key>
- <value></value>
- </param>
- <param>
- <key>window_size</key>
- <value>1280, 1024</value>
- </param>
- <param>
- <key>generate_options</key>
- <value>no_gui</value>
- </param>
- <param>
- <key>category</key>
- <value>Custom</value>
- </param>
- <param>
- <key>run_options</key>
- <value>prompt</value>
- </param>
- <param>
- <key>run</key>
- <value>True</value>
- </param>
- <param>
- <key>max_nouts</key>
- <value>0</value>
- </param>
- <param>
- <key>realtime_scheduling</key>
- <value></value>
- </param>
- <param>
- <key>alias</key>
- <value></value>
- </param>
- <param>
- <key>_coordinate</key>
- <value>(-8, -12)</value>
- </param>
- <param>
- <key>_rotation</key>
- <value>0</value>
- </param>
- </block>
- <block>
- <key>blocks_pdu_to_tagged_stream</key>
- <param>
- <key>id</key>
- <value>blocks_pdu_to_tagged_stream_0</value>
- </param>
- <param>
- <key>_enabled</key>
- <value>True</value>
- </param>
- <param>
- <key>type</key>
- <value>byte</value>
- </param>
- <param>
- <key>tag</key>
- <value>packet_len</value>
- </param>
- <param>
- <key>alias</key>
- <value></value>
- </param>
- <param>
- <key>affinity</key>
- <value></value>
- </param>
- <param>
- <key>minoutbuf</key>
- <value>0</value>
- </param>
- <param>
- <key>maxoutbuf</key>
- <value>0</value>
- </param>
- <param>
- <key>_coordinate</key>
- <value>(264, 179)</value>
- </param>
- <param>
- <key>_rotation</key>
- <value>0</value>
- </param>
- </block>
- <block>
- <key>blocks_message_strobe</key>
- <param>
- <key>id</key>
- <value>blocks_message_strobe_0_0</value>
- </param>
- <param>
- <key>_enabled</key>
- <value>True</value>
- </param>
- <param>
- <key>msg</key>
- <value>pmt.cons( pmt.PMT_NIL, pmt.make_u8vector(512,0) )</value>
- </param>
- <param>
- <key>period</key>
- <value>750</value>
- </param>
- <param>
- <key>alias</key>
- <value></value>
- </param>
- <param>
- <key>affinity</key>
- <value></value>
- </param>
- <param>
- <key>minoutbuf</key>
- <value>0</value>
- </param>
- <param>
- <key>maxoutbuf</key>
- <value>0</value>
- </param>
- <param>
- <key>_coordinate</key>
- <value>(48, 172)</value>
- </param>
- <param>
- <key>_rotation</key>
- <value>0</value>
- </param>
- </block>
- <block>
- <key>blocks_message_strobe</key>
- <param>
- <key>id</key>
- <value>blocks_message_strobe_0</value>
- </param>
- <param>
- <key>_enabled</key>
- <value>True</value>
- </param>
- <param>
- <key>msg</key>
- <value>pmt.intern("TEST")</value>
- </param>
- <param>
- <key>period</key>
- <value>1000</value>
- </param>
- <param>
- <key>alias</key>
- <value></value>
- </param>
- <param>
- <key>affinity</key>
- <value></value>
- </param>
- <param>
- <key>minoutbuf</key>
- <value>0</value>
- </param>
- <param>
- <key>maxoutbuf</key>
- <value>0</value>
- </param>
- <param>
- <key>_coordinate</key>
- <value>(56, 108)</value>
- </param>
- <param>
- <key>_rotation</key>
- <value>0</value>
- </param>
- </block>
- <block>
- <key>blocks_copy</key>
- <param>
- <key>id</key>
- <value>blocks_copy_0</value>
- </param>
- <param>
- <key>_enabled</key>
- <value>True</value>
- </param>
- <param>
- <key>type</key>
- <value>byte</value>
- </param>
- <param>
- <key>enabled</key>
- <value>True</value>
- </param>
- <param>
- <key>vlen</key>
- <value>1</value>
- </param>
- <param>
- <key>showports</key>
- <value>True</value>
- </param>
- <param>
- <key>alias</key>
- <value></value>
- </param>
- <param>
- <key>affinity</key>
- <value></value>
- </param>
- <param>
- <key>minoutbuf</key>
- <value>0</value>
- </param>
- <param>
- <key>maxoutbuf</key>
- <value>0</value>
- </param>
- <param>
- <key>_coordinate</key>
- <value>(496, 179)</value>
- </param>
- <param>
- <key>_rotation</key>
- <value>0</value>
- </param>
- </block>
- <block>
- <key>blocks_tagged_stream_to_pdu</key>
- <param>
- <key>id</key>
- <value>blocks_tagged_stream_to_pdu_0</value>
- </param>
- <param>
- <key>_enabled</key>
- <value>True</value>
- </param>
- <param>
- <key>type</key>
- <value>byte</value>
- </param>
- <param>
- <key>tag</key>
- <value>packet_len</value>
- </param>
- <param>
- <key>alias</key>
- <value></value>
- </param>
- <param>
- <key>affinity</key>
- <value></value>
- </param>
- <param>
- <key>minoutbuf</key>
- <value>0</value>
- </param>
- <param>
- <key>maxoutbuf</key>
- <value>0</value>
- </param>
- <param>
- <key>_coordinate</key>
- <value>(664, 179)</value>
- </param>
- <param>
- <key>_rotation</key>
- <value>0</value>
- </param>
- </block>
- <block>
- <key>blocks_message_debug</key>
- <param>
- <key>id</key>
- <value>blocks_message_debug_0</value>
- </param>
- <param>
- <key>_enabled</key>
- <value>True</value>
- </param>
- <param>
- <key>alias</key>
- <value></value>
- </param>
- <param>
- <key>affinity</key>
- <value></value>
- </param>
- <param>
- <key>_coordinate</key>
- <value>(944, 120)</value>
- </param>
- <param>
- <key>_rotation</key>
- <value>0</value>
- </param>
- </block>
- <connection>
- <source_block_id>blocks_message_strobe_0_0</source_block_id>
- <sink_block_id>blocks_pdu_to_tagged_stream_0</sink_block_id>
- <source_key>strobe</source_key>
- <sink_key>pdus</sink_key>
- </connection>
- <connection>
- <source_block_id>blocks_pdu_to_tagged_stream_0</source_block_id>
- <sink_block_id>blocks_copy_0</sink_block_id>
- <source_key>0</source_key>
- <sink_key>0</sink_key>
- </connection>
- <connection>
- <source_block_id>blocks_copy_0</source_block_id>
- <sink_block_id>blocks_tagged_stream_to_pdu_0</sink_block_id>
- <source_key>0</source_key>
- <sink_key>0</sink_key>
- </connection>
- <connection>
- <source_block_id>blocks_message_strobe_0</source_block_id>
- <sink_block_id>blocks_message_debug_0</sink_block_id>
- <source_key>strobe</source_key>
- <sink_key>print</sink_key>
- </connection>
- <connection>
- <source_block_id>blocks_tagged_stream_to_pdu_0</source_block_id>
- <sink_block_id>blocks_message_debug_0</sink_block_id>
- <source_key>pdus</source_key>
- <sink_key>print_pdu</sink_key>
- </connection>
-</flow_graph>
+options:
+ parameters:
+ author: ''
+ category: Custom
+ cmake_opt: ''
+ comment: ''
+ copyright: ''
+ description: ''
+ gen_cmake: 'On'
+ gen_linking: dynamic
+ generate_options: no_gui
+ hier_block_src_path: '.:'
+ id: strobe
+ 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: ''
+ window_size: 1280, 1024
+ states:
+ coordinate: [16, 12.0]
+ rotation: 0
+ state: enabled
+
+blocks:
+- name: blocks_copy_0
+ id: blocks_copy
+ parameters:
+ affinity: ''
+ alias: ''
+ comment: ''
+ enabled: 'True'
+ maxoutbuf: '0'
+ minoutbuf: '0'
+ showports: 'True'
+ type: byte
+ vlen: '1'
+ states:
+ coordinate: [504, 188.0]
+ rotation: 0
+ state: enabled
+- name: blocks_message_debug_0
+ id: blocks_message_debug
+ parameters:
+ affinity: ''
+ alias: ''
+ comment: ''
+ states:
+ coordinate: [952, 128.0]
+ rotation: 0
+ state: enabled
+- name: blocks_message_strobe_0
+ id: blocks_message_strobe
+ parameters:
+ affinity: ''
+ alias: ''
+ comment: ''
+ maxoutbuf: '0'
+ minoutbuf: '0'
+ msg: pmt.intern("TEST")
+ period: '1000'
+ states:
+ coordinate: [64, 116.0]
+ rotation: 0
+ state: enabled
+- name: blocks_message_strobe_0_0
+ id: blocks_message_strobe
+ parameters:
+ affinity: ''
+ alias: ''
+ comment: ''
+ maxoutbuf: '0'
+ minoutbuf: '0'
+ msg: pmt.cons( pmt.PMT_NIL, pmt.make_u8vector(512,0) )
+ period: '750'
+ states:
+ coordinate: [56, 180.0]
+ rotation: 0
+ state: enabled
+- name: blocks_pdu_to_tagged_stream_0
+ id: blocks_pdu_to_tagged_stream
+ parameters:
+ affinity: ''
+ alias: ''
+ comment: ''
+ maxoutbuf: '0'
+ minoutbuf: '0'
+ tag: packet_len
+ type: byte
+ states:
+ coordinate: [272, 188.0]
+ rotation: 0
+ state: enabled
+- name: blocks_tagged_stream_to_pdu_0
+ id: blocks_tagged_stream_to_pdu
+ parameters:
+ affinity: ''
+ alias: ''
+ comment: ''
+ maxoutbuf: '0'
+ minoutbuf: '0'
+ tag: packet_len
+ type: byte
+ states:
+ coordinate: [672, 188.0]
+ rotation: 0
+ state: enabled
+
+connections:
+- [blocks_copy_0, '0', blocks_tagged_stream_to_pdu_0, '0']
+- [blocks_message_strobe_0, strobe, blocks_message_debug_0, print]
+- [blocks_message_strobe_0_0, strobe, blocks_pdu_to_tagged_stream_0, pdus]
+- [blocks_pdu_to_tagged_stream_0, '0', blocks_copy_0, '0']
+- [blocks_tagged_stream_to_pdu_0, pdus, blocks_message_debug_0, print_pdu]
+
+metadata:
+ file_format: 1