[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r10330 - in gnuradio/trunk/grc/data/platforms/python:
From: |
jblum |
Subject: |
[Commit-gnuradio] r10330 - in gnuradio/trunk/grc/data/platforms/python: . blocks |
Date: |
Wed, 28 Jan 2009 13:06:20 -0700 (MST) |
Author: jblum
Date: 2009-01-28 13:06:20 -0700 (Wed, 28 Jan 2009)
New Revision: 10330
Added:
gnuradio/trunk/grc/data/platforms/python/blocks/const_source_x.xml
Modified:
gnuradio/trunk/grc/data/platforms/python/block_tree.xml
gnuradio/trunk/grc/data/platforms/python/blocks/Makefile.am
Log:
constant source convenience wrapper
Modified: gnuradio/trunk/grc/data/platforms/python/block_tree.xml
===================================================================
--- gnuradio/trunk/grc/data/platforms/python/block_tree.xml 2009-01-28
19:52:45 UTC (rev 10329)
+++ gnuradio/trunk/grc/data/platforms/python/block_tree.xml 2009-01-28
20:06:20 UTC (rev 10330)
@@ -8,6 +8,7 @@
<name></name> <!-- Blank for Root Name -->
<cat>
<name>Sources</name>
+ <block>const_source_x</block>
<block>gr_sig_source_x</block>
<block>gr_noise_source_x</block>
<block>gr_vector_source_x</block>
Modified: gnuradio/trunk/grc/data/platforms/python/blocks/Makefile.am
===================================================================
--- gnuradio/trunk/grc/data/platforms/python/blocks/Makefile.am 2009-01-28
19:52:45 UTC (rev 10329)
+++ gnuradio/trunk/grc/data/platforms/python/blocks/Makefile.am 2009-01-28
20:06:20 UTC (rev 10330)
@@ -55,6 +55,7 @@
blks2_wfm_rcv.xml \
blks2_wfm_rcv_pll.xml \
blks2_wfm_tx.xml \
+ const_source_x.xml \
gr_add_const_vxx.xml \
gr_add_vxx.xml \
gr_agc2_xx.xml \
Copied: gnuradio/trunk/grc/data/platforms/python/blocks/const_source_x.xml
(from rev 10326,
gnuradio/trunk/grc/data/platforms/python/blocks/gr_sig_source_x.xml)
===================================================================
--- gnuradio/trunk/grc/data/platforms/python/blocks/const_source_x.xml
(rev 0)
+++ gnuradio/trunk/grc/data/platforms/python/blocks/const_source_x.xml
2009-01-28 20:06:20 UTC (rev 10330)
@@ -0,0 +1,52 @@
+<?xml version="1.0"?>
+<!--
+###################################################
+##Constant Source: Custom wrapper
+###################################################
+ -->
+<block>
+ <name>Constant Source</name>
+ <key>const_source_x</key>
+ <import>from gnuradio import gr</import>
+ <make>gr.sig_source_$(type.fcn)(0, gr.GR_CONST_WAVE, 0, 0,
$const)</make>
+ <callback>set_offset($const)</callback>
+ <param>
+ <name>Output Type</name>
+ <key>type</key>
+ <type>enum</type>
+ <option>
+ <name>Complex</name>
+ <key>complex</key>
+ <opt>fcn:c</opt>
+ <opt>const_type:complex</opt>
+ </option>
+ <option>
+ <name>Float</name>
+ <key>float</key>
+ <opt>fcn:f</opt>
+ <opt>const_type:real</opt>
+ </option>
+ <option>
+ <name>Int</name>
+ <key>int</key>
+ <opt>fcn:i</opt>
+ <opt>const_type:int</opt>
+ </option>
+ <option>
+ <name>Short</name>
+ <key>short</key>
+ <opt>fcn:s</opt>
+ <opt>const_type:int</opt>
+ </option>
+ </param>
+ <param>
+ <name>Constant</name>
+ <key>const</key>
+ <value>0</value>
+ <type>$type.const_type</type>
+ </param>
+ <source>
+ <name>out</name>
+ <type>$type</type>
+ </source>
+</block>
Property changes on:
gnuradio/trunk/grc/data/platforms/python/blocks/const_source_x.xml
___________________________________________________________________
Name: svn:mergeinfo
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r10330 - in gnuradio/trunk/grc/data/platforms/python: . blocks,
jblum <=