commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r3618 - gnuradio/branches/developers/eb/digital-wip/gn


From: eb
Subject: [Commit-gnuradio] r3618 - gnuradio/branches/developers/eb/digital-wip/gnuradio-examples/python/gmsk2
Date: Fri, 22 Sep 2006 12:21:01 -0600 (MDT)

Author: eb
Date: 2006-09-22 12:21:01 -0600 (Fri, 22 Sep 2006)
New Revision: 3618

Modified:
   
gnuradio/branches/developers/eb/digital-wip/gnuradio-examples/python/gmsk2/receive_path.py
   
gnuradio/branches/developers/eb/digital-wip/gnuradio-examples/python/gmsk2/transmit_path.py
Log:
added logging option

Modified: 
gnuradio/branches/developers/eb/digital-wip/gnuradio-examples/python/gmsk2/receive_path.py
===================================================================
--- 
gnuradio/branches/developers/eb/digital-wip/gnuradio-examples/python/gmsk2/receive_path.py
  2006-09-22 18:14:03 UTC (rev 3617)
+++ 
gnuradio/branches/developers/eb/digital-wip/gnuradio-examples/python/gmsk2/receive_path.py
  2006-09-22 18:21:01 UTC (rev 3618)
@@ -212,6 +212,9 @@
                           help="set Rx frequency to FREQ [default=%default]", 
metavar="FREQ")
         expert.add_option("-d", "--decim", type="intx", default=None,
                           help="set fpga decimation rate to DECIM 
[default=%default]")
+        expert.add_option("", "--log", action="store_true", default=False,
+                          help="Log all parts of flow graph to files (CAUTION: 
lots of data)")
+
     # Make a static method to call before instantiation
     add_options = staticmethod(add_options)
 

Modified: 
gnuradio/branches/developers/eb/digital-wip/gnuradio-examples/python/gmsk2/transmit_path.py
===================================================================
--- 
gnuradio/branches/developers/eb/digital-wip/gnuradio-examples/python/gmsk2/transmit_path.py
 2006-09-22 18:14:03 UTC (rev 3617)
+++ 
gnuradio/branches/developers/eb/digital-wip/gnuradio-examples/python/gmsk2/transmit_path.py
 2006-09-22 18:21:01 UTC (rev 3618)
@@ -72,7 +72,7 @@
         ok = self.set_freq(self._tx_freq)
         if not ok:
             print "Failed to set Tx frequency to %s" % 
(eng_notation.num_to_str(self._tx_freq),)
-            raise ValueError, eng_notation.num_to_str(self._tx_freq)
+            raise ValueError
     
         # transmitter
         self.packet_transmitter = \
@@ -198,6 +198,9 @@
                           help="set transmit frequency to FREQ 
[default=%default]", metavar="FREQ")
         expert.add_option("-i", "--interp", type="intx", default=None,
                           help="set fpga interpolation rate to INTERP 
[default=%default]")
+        expert.add_option("", "--log", action="store_true", default=False,
+                          help="Log all parts of flow graph to file (CAUTION: 
lots of data)")
+
     # Make a static method to call before instantiation
     add_options = staticmethod(add_options)
 
@@ -206,6 +209,7 @@
         Prints information about the transmit path
         """
         print "Using TX d'board %s"    % (self.subdev.side_and_name(),)
+        print "Tx amplitude     %s"    % (self._tx_amplitude)
         print "modulation:      %s"    % (self._modulator_class.__name__)
         print "bitrate:         %sb/s" % 
(eng_notation.num_to_str(self._bitrate))
         print "samples/symbol:  %3d"   % (self._samples_per_symbol)





reply via email to

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