Hi all, I wanna work into this project, as I think its excellent! My box is a gentoo box running
net-wireless/gnuradio-3.7.3:0/3.7.3 USE="alsa analog digital examples fcd filter grc pager qt4 sdl uhd utils wavelet wxwidgets -doc -jack -oss -performance-counters -portaudio" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7" For the first experiments I found this page giving a scope and fft display of the soundcard input, http://www.funwithelectronics.com/?id=10 the py file looks like this #!/usr/bin/env python from gnuradio import gr from gnuradio.wxgui import stdgui2,fftsink2,scopesink2 import wx class gnuradioGUI(stdgui2.std_top_block): def __init__(self,frame,panel,vbox,argv): stdgui2.std_top_block.__init__(self,frame,panel,vbox,argv) fft = fftsink2.fft_sink_f(panel, title="FFT display", fft_size=512, sample_rate=100000) vbox.Add(fft.win,4,wx.EXPAND) scope = scopesink2.scope_sink_f(panel, title="Oscilloscope", sample_rate=100000) vbox.Add(scope.win,4,wx.EXPAND) signal = gr.sig_source_f(100000,gr.GR_SIN_WAVE,20000,1000,0) throttle = gr.throttle(gr.sizeof_float,100000) self.connect(signal,throttle) self.connect(throttle,fft) self.connect(throttle,scope) if __name__ == '__main__': app = stdgui2.stdapp(gnuradioGUI,"A simple GNU Radio GUI") app.MainLoop() when I try to start this #python2.7 simple.py Using Volk machine: avx_32_mmx_orc Traceback (most recent call last): File "./simplegui.py", line 25, in <module> app = stdgui2.stdapp(gnuradioGUI,"A simple GNU Radio GUI") File "/usr/lib/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 46, in __init__ wx.App.__init__ (self, redirect=False) File "/usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7981, in __init__ self._BootstrapApp() File "/usr/lib/python2.7/site-packages/wx-2.8-gtk2-unicode/wx/_core.py", line 7555, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "/usr/lib/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 49, in OnInit frame = stdframe (self.top_block_maker, self.title, self._nstatus) File "/usr/lib/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 76, in __init__ self.panel = stdpanel (self, self, top_block_maker) File "/usr/lib/python2.7/site-packages/gnuradio/wxgui/stdgui2.py", line 98, in __init__ self.top_block = top_block_maker (frame, self, vbox, sys.argv) File "./simplegui.py", line 18, in __init__ signal = gr.sig_source_f(100000,gr.GR_SIN_WAVE,20000,1000,0) AttributeError: 'module' object has no attribute 'sig_source_f' but then nothing is displayed can someone experienced please give me a hint?? _______________________________________________ Discuss-gnuradio mailing list [email protected] https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
