diff options
author | Tim O'Shea | 2013-01-10 11:39:05 -0500 |
---|---|---|
committer | Johnathan Corgan | 2013-01-14 12:32:00 -0800 |
commit | d1d210da036af0723c15d1c1f85fbacebe456bb5 (patch) | |
tree | ed8ec98fc95705f6293f36370eb520ebed591a6d /grc | |
parent | ca407436f4d42aee0511181e2c2e6eecdccfa7d7 (diff) | |
download | gnuradio-d1d210da036af0723c15d1c1f85fbacebe456bb5.tar.gz gnuradio-d1d210da036af0723c15d1c1f85fbacebe456bb5.tar.bz2 gnuradio-d1d210da036af0723c15d1c1f85fbacebe456bb5.zip |
core: adding gr_random_pdu message passing block
Conflicts:
gnuradio-core/src/lib/general/CMakeLists.txt
gnuradio-core/src/lib/general/general.i
Diffstat (limited to 'grc')
-rw-r--r-- | grc/blocks/block_tree.xml | 1 | ||||
-rw-r--r-- | grc/blocks/gr_random_pdu.xml | 35 |
2 files changed, 36 insertions, 0 deletions
diff --git a/grc/blocks/block_tree.xml b/grc/blocks/block_tree.xml index 183883959..dcd6c5448 100644 --- a/grc/blocks/block_tree.xml +++ b/grc/blocks/block_tree.xml @@ -45,6 +45,7 @@ <block>gr_tagged_stream_to_pdu</block> <block>gr_tuntap_pdu</block> <block>gr_socket_pdu</block> + <block>gr_random_pdu</block> </cat> <cat> <name>Operators</name> diff --git a/grc/blocks/gr_random_pdu.xml b/grc/blocks/gr_random_pdu.xml new file mode 100644 index 000000000..ed5a79a92 --- /dev/null +++ b/grc/blocks/gr_random_pdu.xml @@ -0,0 +1,35 @@ +<?xml version="1.0"?> +<!-- +################################################### +## Random PDU +################################################### + --> +<block> + <name>Random PDU Generator</name> + <key>gr_random_pdu</key> + <import>from gnuradio import gr</import> + <import>from gruel import pmt</import> + <make>gr.random_pdu($minsize, $maxsize)</make> + <param> + <name>Min Bytes</name> + <key>minsize</key> + <value>50</value> + <type>int</type> + </param> + <param> + <name>Max Bytes</name> + <key>maxsize</key> + <value>2000</value> + <type>int</type> + </param> + <sink> + <name>generate</name> + <type>message</type> + <optional>1</optional> + </sink> + <source> + <name>pdus</name> + <type>message</type> + <optional>1</optional> + </source> +</block> |