diff options
author | ghostop14 <ghostop14@gmail.com> | 2020-02-13 09:26:07 -0500 |
---|---|---|
committer | Michael Dickens <michael.dickens@ettus.com> | 2020-02-15 18:50:33 -0500 |
commit | f6a346d8b59050b2da520c80f7fab9d85018e350 (patch) | |
tree | cd09945ad44a76838a2e1b058d4658acc94264fb /gr-blocks/python/blocks/__init__.py | |
parent | d9750796171a2b98e78b8a1e9b55ff8c8a414ad0 (diff) |
gr-blocks Add Msg to Var and Var to Msg Conversion Blocks
These 3 new blocks provide the missing glue to move between messages
and variables in the same flowgraph. There are 3 variants here:
1. Monitor a variable and produce a user-specified message (pair)
when the variable changes. Useful bridging standard GUI controls
to message-based blocks.
2. When an inbound message (pair) is received, update a specified
variable.
3. When an inbound message (dict) is received, extract a single
dictionary entry and produce a message pair (useful if you have a
multi-value dictionary but you just want to pull off a single
attribute such as frequency or gain without modifying the upstream
block. This can be paired with (2) if necessary to move from a
dictionary item to a variable.
Diffstat (limited to 'gr-blocks/python/blocks/__init__.py')
-rw-r--r-- | gr-blocks/python/blocks/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gr-blocks/python/blocks/__init__.py b/gr-blocks/python/blocks/__init__.py index 3815a26b3a..c4eab53ce6 100644 --- a/gr-blocks/python/blocks/__init__.py +++ b/gr-blocks/python/blocks/__init__.py @@ -24,6 +24,9 @@ except ImportError: from .blocks_swig import * from .stream_to_vector_decimator import * +from .msg_meta_to_pair import meta_to_pair +from .msg_pair_to_var import msg_pair_to_var +from .var_to_msg import var_to_msg_pair #alias old add_vXX and multiply_vXX add_vcc = add_cc |