Message Pair to Var

From GNU Radio
Revision as of 13:11, 11 February 2021 by Duggabe (talk | contribs) (add detail)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This block converts an input message pair to the value of a gnuradio variable.


(R): Run-time adjustable

Name of the variable to be set. type: string; default: 'freq'


Input message pairs are of the form (<name> . <value>). More information can be found in PMT Pairs.

Example Flowgraph[edit]

In this flowgraph, the input message has the name 'value' and the value of 1 or 0. The Message Pair to Var Block Variable has the value "pressed", so it sets the variable "pressed" to 1. The QT_GUI_Label displays the value of "pressed".

Msg pair to var fg.png

Example Output[edit]

Msg pair to var out.png

Source Files[edit]

C++ files
Header files
Public header files
Block definition