commit-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Commit-gnuradio] r10970 - gnuradio/trunk/grc/data/platforms/python/bloc


From: jblum
Subject: [Commit-gnuradio] r10970 - gnuradio/trunk/grc/data/platforms/python/blocks
Date: Tue, 5 May 2009 17:45:16 -0600 (MDT)

Author: jblum
Date: 2009-05-05 17:45:16 -0600 (Tue, 05 May 2009)
New Revision: 10970

Modified:
   gnuradio/trunk/grc/data/platforms/python/blocks/usrp2_sink_xxxx.xml
   gnuradio/trunk/grc/data/platforms/python/blocks/usrp2_source_xxxx.xml
Log:
lo offset for usrp2 wrappers

Modified: gnuradio/trunk/grc/data/platforms/python/blocks/usrp2_sink_xxxx.xml
===================================================================
--- gnuradio/trunk/grc/data/platforms/python/blocks/usrp2_sink_xxxx.xml 
2009-05-05 23:15:58 UTC (rev 10969)
+++ gnuradio/trunk/grc/data/platforms/python/blocks/usrp2_sink_xxxx.xml 
2009-05-05 23:45:16 UTC (rev 10970)
@@ -17,7 +17,11 @@
 #end if
 self.$(id).set_interp($interpolation)
 self.$(id).set_center_freq($frequency)
-self.$(id).set_gain($gain)</make>
+self.$(id).set_gain($gain)
+#if $lo_offset() != float('inf')
+self.$(id).set_lo_offset($lo_offset)
+#end if</make>
+       <callback>set_lo_offset($lo_offset)</callback>
        <callback>set_interp($interpolation)</callback>
        <callback>set_center_freq($frequency)</callback>
        <callback>set_gain($gain)</callback>
@@ -54,12 +58,23 @@
                <type>int</type>
        </param>
        <param>
-               <name>Frequency</name>
+               <name>Frequency (Hz)</name>
                <key>frequency</key>
                <type>real</type>
        </param>
        <param>
-               <name>Gain</name>
+               <name>LO Offset (Hz)</name>
+               <key>lo_offset</key>
+               <value>float('inf')</value>
+               <type>real</type>
+               <hide>#if $lo_offset() == float('inf') then 'part' else 
'none'#</hide>
+               <option>
+                       <name>Default</name>
+                       <key>float('inf')</key>
+               </option>
+       </param>
+       <param>
+               <name>Gain (dB)</name>
                <key>gain</key>
                <type>real</type>
        </param>
@@ -70,6 +85,8 @@
        <doc>
 The USRP2 sink inputs 100 Megasamples per second / interpolation.
 
+Input amplitude should be between 0.0 and 1.0.
+
 To use the default ethernet device, leave interface blank. \
 For systems with only 1 USRP2, you may leave the mac address blank. \
 For multi-USRP2 systems, specify the mac address in the form 00:50:C2:85:3x:xx.

Modified: gnuradio/trunk/grc/data/platforms/python/blocks/usrp2_source_xxxx.xml
===================================================================
--- gnuradio/trunk/grc/data/platforms/python/blocks/usrp2_source_xxxx.xml       
2009-05-05 23:15:58 UTC (rev 10969)
+++ gnuradio/trunk/grc/data/platforms/python/blocks/usrp2_source_xxxx.xml       
2009-05-05 23:45:16 UTC (rev 10970)
@@ -17,7 +17,11 @@
 #end if
 self.$(id).set_decim($decimation)
 self.$(id).set_center_freq($frequency)
-self.$(id).set_gain($gain)</make>
+self.$(id).set_gain($gain)
+#if $lo_offset() != float('inf')
+self.$(id).set_lo_offset($lo_offset)
+#end if</make>
+       <callback>set_lo_offset($lo_offset)</callback>
        <callback>set_decim($decimation)</callback>
        <callback>set_center_freq($frequency)</callback>
        <callback>set_gain($gain)</callback>
@@ -54,12 +58,23 @@
                <type>int</type>
        </param>
        <param>
-               <name>Frequency</name>
+               <name>Frequency (Hz)</name>
                <key>frequency</key>
                <type>real</type>
        </param>
+    <param>
+               <name>LO Offset (Hz)</name>
+               <key>lo_offset</key>
+               <value>float('inf')</value>
+               <type>real</type>
+               <hide>#if $lo_offset() == float('inf') then 'part' else 
'none'#</hide>
+               <option>
+                       <name>Default</name>
+                       <key>float('inf')</key>
+               </option>
+       </param>
        <param>
-               <name>Gain</name>
+               <name>Gain (dB)</name>
                <key>gain</key>
                <type>real</type>
        </param>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]