diff options
author | Tom Rondeau | 2011-10-18 16:16:04 -0700 |
---|---|---|
committer | Tom Rondeau | 2011-10-18 16:20:00 -0700 |
commit | f76eab20ff3811690f5dcbaa04d2c4e41f4b298b (patch) | |
tree | 4e0b04dfcb9afcf377e0ef1732efa5977205cc15 /grc/blocks | |
parent | a01c42495ecd9f3a8b34c3e10cfd0e9fec1f26c4 (diff) | |
download | gnuradio-f76eab20ff3811690f5dcbaa04d2c4e41f4b298b.tar.gz gnuradio-f76eab20ff3811690f5dcbaa04d2c4e41f4b298b.tar.bz2 gnuradio-f76eab20ff3811690f5dcbaa04d2c4e41f4b298b.zip |
added transcendental block from jblum/transcendental (reworked for master branch).
Diffstat (limited to 'grc/blocks')
-rw-r--r-- | grc/blocks/Makefile.am | 1 | ||||
-rw-r--r-- | grc/blocks/block_tree.xml | 2 | ||||
-rw-r--r-- | grc/blocks/gr_transcendental.xml | 41 |
3 files changed, 43 insertions, 1 deletions
diff --git a/grc/blocks/Makefile.am b/grc/blocks/Makefile.am index a9f9427e9..1ca4bb848 100644 --- a/grc/blocks/Makefile.am +++ b/grc/blocks/Makefile.am @@ -183,6 +183,7 @@ dist_ourdata_DATA = \ gr_sub_xx.xml \ gr_threshold_ff.xml \ gr_throttle.xml \ + gr_transcendental.xml \ gr_uchar_to_float.xml \ gr_udp_sink.xml \ gr_udp_source.xml \ diff --git a/grc/blocks/block_tree.xml b/grc/blocks/block_tree.xml index f82d40f85..4b864690c 100644 --- a/grc/blocks/block_tree.xml +++ b/grc/blocks/block_tree.xml @@ -42,7 +42,7 @@ <block>gr_multiply_xx</block> <block>gr_divide_xx</block> <block>gr_nlog10_ff</block> - + <block>gr_transcendental</block> <block>gr_add_const_vxx</block> <block>gr_multiply_const_vxx</block> <block>gr_and_const_xx</block> diff --git a/grc/blocks/gr_transcendental.xml b/grc/blocks/gr_transcendental.xml new file mode 100644 index 000000000..eede447f9 --- /dev/null +++ b/grc/blocks/gr_transcendental.xml @@ -0,0 +1,41 @@ +<?xml version="1.0"?> +<!-- +################################################### +##transcendental functions +################################################### + --> +<block> + <name>Transcendental</name> + <key>gr_transcendental</key> + <import>from gnuradio import gr</import> + <make>gr.transcendental($name, "$type")</make> + <param> + <name>Type</name> + <key>type</key> + <type>enum</type> + <option> + <name>Complex</name> + <key>complex_double</key> + <opt>type:complex</opt> + </option> + <option> + <name>Float</name> + <key>float</key> + <opt>type:float</opt> + </option> + </param> + <param> + <name>Function Name</name> + <key>name</key> + <value>cos</value> + <type>string</type> + </param> + <sink> + <name>in</name> + <type>$type.type</type> + </sink> + <source> + <name>out</name> + <type>$type.type</type> + </source> +</block> |