commit-gnuradio
[Top][All Lists]
Advanced

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

[Commit-gnuradio] r11616 - in gnuradio/branches/developers/n4hy/pfb_iir/


From: n4hy
Subject: [Commit-gnuradio] r11616 - in gnuradio/branches/developers/n4hy/pfb_iir/gnuradio-examples/python/apps: . filter_design_tool
Date: Wed, 19 Aug 2009 20:59:20 -0600 (MDT)

Author: n4hy
Date: 2009-08-19 20:59:19 -0600 (Wed, 19 Aug 2009)
New Revision: 11616

Added:
   
gnuradio/branches/developers/n4hy/pfb_iir/gnuradio-examples/python/apps/filter_design_tool/
   
gnuradio/branches/developers/n4hy/pfb_iir/gnuradio-examples/python/apps/filter_design_tool/filter_design_tool.py
   
gnuradio/branches/developers/n4hy/pfb_iir/gnuradio-examples/python/apps/filter_design_tool/iirdestest.py
   
gnuradio/branches/developers/n4hy/pfb_iir/gnuradio-examples/python/apps/filter_design_tool/test.py
Log:
iir design examples/tests

Added: 
gnuradio/branches/developers/n4hy/pfb_iir/gnuradio-examples/python/apps/filter_design_tool/filter_design_tool.py
===================================================================
--- 
gnuradio/branches/developers/n4hy/pfb_iir/gnuradio-examples/python/apps/filter_design_tool/filter_design_tool.py
                            (rev 0)
+++ 
gnuradio/branches/developers/n4hy/pfb_iir/gnuradio-examples/python/apps/filter_design_tool/filter_design_tool.py
    2009-08-20 02:59:19 UTC (rev 11616)
@@ -0,0 +1,51 @@
+#!/usr/bin/env python
+#
+# Copyright 2009 Free Software Foundation, Inc.
+# 
+# This file is part of GNU Radio
+# 
+# GNU Radio is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+# 
+# GNU Radio is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License
+# along with GNU Radio; see the file COPYING.  If not, write to
+# the Free Software Foundation, Inc., 51 Franklin Street,
+# Boston, MA 02110-1301, USA.
+# 
+
+from gnuradio import gr, gru, eng_notation, optfir
+from gnuradio import audio
+from gnuradio import blks2
+from gnuradio.eng_option import eng_option
+from gnuradio.wxgui import slider
+from gnuradio.wxgui import stdgui2, fftsink2, form, scopesink2
+from optparse import OptionParser
+import sys
+import math
+import wx
+
+class filter_design_tool(stdgui2.std_top_block):
+    def __init__(self,frame,panel,vbox,argv):
+        stdgui2.std_top_block.__init__ (self,frame,panel,vbox,argv)
+
+        self.frame = frame
+        self.panel = panel
+        
+
+        numbers = gr.iirdes.butterord(gr.iirdes.LOWPASS,
+                              [.2, .8],
+                              [.1, .9],
+                              .1,
+                              100)
+        print len(numbers)
+
+if __name__ == '__main__':
+    app = stdgui2.stdapp (filter_design_tool, "FILTER DESIGN TOOL")
+    app.MainLoop ()


Property changes on: 
gnuradio/branches/developers/n4hy/pfb_iir/gnuradio-examples/python/apps/filter_design_tool/filter_design_tool.py
___________________________________________________________________
Added: svn:executable
   + *

Added: 
gnuradio/branches/developers/n4hy/pfb_iir/gnuradio-examples/python/apps/filter_design_tool/iirdestest.py
===================================================================
--- 
gnuradio/branches/developers/n4hy/pfb_iir/gnuradio-examples/python/apps/filter_design_tool/iirdestest.py
                            (rev 0)
+++ 
gnuradio/branches/developers/n4hy/pfb_iir/gnuradio-examples/python/apps/filter_design_tool/iirdestest.py
    2009-08-20 02:59:19 UTC (rev 11616)
@@ -0,0 +1,51 @@
+#!/usr/bin/env python
+#
+# Copyright 2009 Free Software Foundation, Inc.
+# 
+# This file is part of GNU Radio
+# 
+# GNU Radio is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+# 
+# GNU Radio is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License
+# along with GNU Radio; see the file COPYING.  If not, write to
+# the Free Software Foundation, Inc., 51 Franklin Street,
+# Boston, MA 02110-1301, USA.
+# 
+
+from gnuradio import gr
+
+numbers = gr.iirdes.butterord(gr.iirdes.LOWPASS,
+                              [.3],
+                              [.4],
+                              .1,
+                              60)
+print "Butterpass Lowpass design, order and cutoff frequency = ",numbers,"\n"
+
+numbersC = gr.iirdes.chebyshevord(gr.iirdes.BANDPASS,
+                              [.2, .3],
+                              [.1, .4],
+                              .1,
+                              60)
+print "Chebyshev Bandpass design, order and cutoff frequency = ",numbersC,"\n"
+
+numbersIC = gr.iirdes.invchebyshevord(gr.iirdes.BANDPASS,
+                              [.2, .3],
+                              [.1, .4],
+                              .1,
+                              60)
+print "Inverse Chebyshev (Cheby Type 2) Bandpass design, order and cutoff 
frequency = ",numbersIC,"\n"
+
+
+tf=[0.0976, 0.1953, 0.0976, 0.3333, -0.9428, 1.0]
+order = gr.iirdes.tf2order(tf)
+print "order of filter= ",order,"\n"
+zpg = gr.iirdes.tf2zpg(tf)
+print "zeros,poles,gain = ",zpg,"\n"


Property changes on: 
gnuradio/branches/developers/n4hy/pfb_iir/gnuradio-examples/python/apps/filter_design_tool/iirdestest.py
___________________________________________________________________
Added: svn:executable
   + *

Added: 
gnuradio/branches/developers/n4hy/pfb_iir/gnuradio-examples/python/apps/filter_design_tool/test.py
===================================================================
--- 
gnuradio/branches/developers/n4hy/pfb_iir/gnuradio-examples/python/apps/filter_design_tool/test.py
                          (rev 0)
+++ 
gnuradio/branches/developers/n4hy/pfb_iir/gnuradio-examples/python/apps/filter_design_tool/test.py
  2009-08-20 02:59:19 UTC (rev 11616)
@@ -0,0 +1,28 @@
+#!/usr/bin/env python
+#
+# Copyright 2005,2006,2007 Free Software Foundation, Inc.
+# 
+# This file is part of GNU Radio
+# 
+# GNU Radio is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 3, or (at your option)
+# any later version.
+# 
+# GNU Radio is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+# 
+# You should have received a copy of the GNU General Public License
+# along with GNU Radio; see the file COPYING.  If not, write to
+# the Free Software Foundation, Inc., 51 Franklin Street,
+# Boston, MA 02110-1301, USA.
+# 
+
+from gnuradio import gr
+
+numbers = gr.firdes.low_pass_2(1.0,12000,3000,150,60)
+print numbers
+
+


Property changes on: 
gnuradio/branches/developers/n4hy/pfb_iir/gnuradio-examples/python/apps/filter_design_tool/test.py
___________________________________________________________________
Added: svn:executable
   + *





reply via email to

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