commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r8852 - usrp2/branches/developers/roll-back-host-code/


From: eb
Subject: [Commit-gnuradio] r8852 - usrp2/branches/developers/roll-back-host-code/host/apps
Date: Wed, 9 Jul 2008 19:08:47 -0600 (MDT)

Author: eb
Date: 2008-07-09 19:08:45 -0600 (Wed, 09 Jul 2008)
New Revision: 8852

Modified:
   usrp2/branches/developers/roll-back-host-code/host/apps/streaming_fft.py
Log:
added 8494 back in -- -g gain option

Modified: 
usrp2/branches/developers/roll-back-host-code/host/apps/streaming_fft.py
===================================================================
--- usrp2/branches/developers/roll-back-host-code/host/apps/streaming_fft.py    
2008-07-10 01:06:20 UTC (rev 8851)
+++ usrp2/branches/developers/roll-back-host-code/host/apps/streaming_fft.py    
2008-07-10 01:08:45 UTC (rev 8852)
@@ -31,6 +31,8 @@
                       help="set fgpa decimation rate to DECIM 
[default=%default]")
     parser.add_option("-f", "--freq", type="eng_float", default=0.0,
                       help="set frequency to FREQ", metavar="FREQ")
+    parser.add_option("-g", "--gain", type="string", default=None,
+                      help="set gain to GAIN [default=%default]")
     parser.add_option("-W", "--waterfall", action="store_true", default=False,
                       help="Enable waterfall display")
     parser.add_option("-S", "--oscilloscope", action="store_true", 
default=False,
@@ -57,8 +59,12 @@
     if options.oscilloscope:
         display_type = '-S'
 
-    cmd = "sudo %s/rx_streaming_samples -e %s -f %g -d %d -F %d -o 
/proc/self/fd/1 | %s/stdin_int32_fft.py %s -f %g -d %d" % (
-        path, options.eth, options.freq, options.decim, 
options.samples_per_frame,
+    gain_clause = ''
+    if options.gain:
+        gain_clause = '-g ' + options.gain
+
+    cmd = "sudo %s/rx_streaming_samples -e %s -f %g -d %d -F %d %s -o 
/proc/self/fd/1 | %s/stdin_int32_fft.py %s -f %g -d %d" % (
+        path, options.eth, options.freq, options.decim, 
options.samples_per_frame, gain_clause,
         path, display_type, options.freq, options.decim)
 
     print cmd





reply via email to

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