commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r7647 - usrp2/trunk/host/apps


From: eb
Subject: [Commit-gnuradio] r7647 - usrp2/trunk/host/apps
Date: Tue, 12 Feb 2008 01:27:35 -0700 (MST)

Author: eb
Date: 2008-02-12 01:27:35 -0700 (Tue, 12 Feb 2008)
New Revision: 7647

Modified:
   usrp2/trunk/host/apps/streaming_fft.py
Log:
pay attention to -S and -W options

Modified: usrp2/trunk/host/apps/streaming_fft.py
===================================================================
--- usrp2/trunk/host/apps/streaming_fft.py      2008-02-12 08:25:37 UTC (rev 
7646)
+++ usrp2/trunk/host/apps/streaming_fft.py      2008-02-12 08:27:35 UTC (rev 
7647)
@@ -50,9 +50,16 @@
     if path == '':
         path = '.'
     
-    cmd = "sudo %s/rx_streaming_samples -e %s -f %g -d %d -F %d -o 
/proc/self/fd/1 | %s/stdin_int32_fft.py -f %g -d %d" % (
+    
+    display_type = ''
+    if options.waterfall:
+        display_type = '-W'
+    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,
-        path, options.freq, options.decim)
+        path, display_type, options.freq, options.decim)
 
     print cmd
     os.system(cmd)





reply via email to

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