[Discuss-gnuradio] Re: change variables in the FFT Plot the 2.
Josh Blum josh at joshknows.com writes: Also, I am concerned that the gl fftsink aborted/segfaulted. Can you run the flow graph in gdb and send the traceback? I thought you were interested in some debugging of this Problem. If not i will not go any further in this point. So i used pdb(Python Debugger) in Emacs and tried to find out the Bug. I did some break Points and can execute my Python Code until, ## #!/usr/bin/env python # encoding: utf8 Title:Mehrfrequentes Impulsmessverfahren mit FPGA- gestützten SDR-(Software definded radio)-Komponenten. Beschreibung: Mit Hilfe dieses Programmes soll ein mehrfrequentes Impulsmessverfahren entwickelt werden, womit Teilentladungen an Hochspannungsisolationen nachgewiesen werden können. __title__='Mehrfrequentes Impulsmessverfahren' __author__='Markus Feldmann' __version__='Diplom WS08/09 Ver.:2009-02-27-01' __license__='GPL' from gnuradio import gr from gnuradio.wxgui import fftsink2 ## gdb doesn't know python code? If i execute my Code line b line than i have to wait very long. Any ideas ? Regards markus ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Re: change variables in the FFT Plot the 2.
Josh Blum josh at joshknows.com writes: Using GRC, I just tested changing the sample rate of the fftsink. I tested this for the gl and non gl version. The x-axis markers move and change correctly when I move the slider for sample rate. The flowgraph.grc is attached. I do not understand why you have the problem? Do you have the latest gnuradio trunk installed? http://gnuradio.org/svn/gnuradio/trunk I have the SVN Version 2009-Jan-28. Further on everytimen i open my *.grc file, the grc deletes the manually inserted class-method, set_sample_rate so there must be a Problem. Also, I am concerned that the gl fftsink aborted/segfaulted. Can you run the flow graph in gdb and send the traceback? Yes i will try this and post the message here. Another important Point, Is there a possibility to save my manually inserted python commands in the top_block.py file without loosing this by the next start of grc ? Regards Markus ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Re: change variables in the FFT Plot the 2.
feldmaus wrote: Josh Blum josh at joshknows.com writes: Using GRC, I just tested changing the sample rate of the fftsink. I tested this for the gl and non gl version. The x-axis markers move and change correctly when I move the slider for sample rate. The flowgraph.grc is attached. I do not understand why you have the problem? Do you have the latest gnuradio trunk installed? http://gnuradio.org/svn/gnuradio/trunk I have the SVN Version 2009-Jan-28. Aha, I believe that I added the set_sample_rate callback recently (possibly in February). svn up! Further on everytimen i open my *.grc file, the grc deletes the manually inserted class-method, set_sample_rate so there must be a Problem. When you generate or run a flow graph in grc, the generated flow graph is always overwritten. Also, I am concerned that the gl fftsink aborted/segfaulted. Can you run the flow graph in gdb and send the traceback? Yes i will try this and post the message here. Another important Point, Is there a possibility to save my manually inserted python commands in the top_block.py file without loosing this by the next start of grc ? Nope, too complicated! If you want to change things: the best way is to manipulate the xml block wrappers or make your own custom wrappers: http://gnuradio.org/trac/wiki/GNURadioCompanion#AddingCustomBlocks And here is fftsink: http://gnuradio.org/trac/browser/gnuradio/trunk/grc/data/platforms/python/blocks/wxgui_fftsink2.xml Regards Markus ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Re: change variables in the FFT Plot the 2.
I do not understand why you have the problem? Do you have the latest gnuradio trunk installed? http://gnuradio.org/svn/gnuradio/trunk I have the SVN Version 2009-Jan-28. It was this changeset on jan 28th http://gnuradio.org/trac/changeset/10327 Make sure the files are installed. good luck -josh ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Re: change variables in the FFT Plot the 2.
Josh Blum josh at joshknows.com writes: Please follow the directions to enable the wxgui - open gl sinks: http://gnuradio.org/trac/browser/gnuradio/trunk/gr-wxgui/README.gl Let me know how it works for you! Hi Josh, my Suse PC has a, ATI Radeon X300 (RV370) 5B60(PCIE) and i think my 3d Acceleration driver is working: $glxinfo name of display: :0.0 display: :0 screen: 0 direct rendering: Yes I followed the Instructions of your Link above, and got a segmentation fault. I installed the python-opengl Package. Any Packages i should also install ? Is there a 3d Testing Tool under Lnux, not the glxinfo command. Regards markus ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Re: change variables in the FFT Plot the 2.
feldmaus feldmann_markus at gmx.de writes: Is there a 3d Testing Tool under Lnux, not the glxinfo command. I tested my 3d with, $glxgears and glxgears works. So i will disable the gl. Or do you have any Hints ? I think my Problem with the set_sample_rate is not be coherent with the gl Problem? Regards Markus ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Discuss-gnuradio] Re: change variables in the FFT Plot the 2.
Josh Blum josh at joshknows.com writes: feldmaus wrote: feldmaus feldmann_markus at gmx.de writes: Not really RIGHT: def set_samp_rate(self, samp_rate): self.samp_rate = samp_rate self.wxgui_fftsink2.set_samp_rate(self.samp_rate) How is the Name of the method to set up the samp_rate ? self.wxgui_fftsink2.set_sample_rate(self.samp_rate) This works for me but sometimes it crashes so it should be a Problem with your min max of the Object self.wxgui_fftsink2 ? Maybe sometimes he try to set an not allowed Value. Can you please check this ? Regards Markus ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Re: change variables in the FFT Plot the 2.
Using GRC, I just tested changing the sample rate of the fftsink. I tested this for the gl and non gl version. The x-axis markers move and change correctly when I move the slider for sample rate. The flowgraph.grc is attached. I do not understand why you have the problem? Do you have the latest gnuradio trunk installed? http://gnuradio.org/svn/gnuradio/trunk --- Also, I am concerned that the gl fftsink aborted/segfaulted. Can you run the flow graph in gdb and send the traceback? -Josh ?xml version='1.0' encoding='ASCII'? flow_graph timestampThu Feb 5 16:02:47 2009/timestamp block keyoptions/key param keyid/key valueoptions/value /param param key_enabled/key valueTrue/value /param param keytitle/key valueFFT Test/value /param param keyauthor/key valueunknown/value /param param keydescription/key valueuntitled flow graph/value /param param keywindow_size/key value1280, 1024/value /param param keygenerate_options/key valuewx_gui/value /param param keycategory/key valueCustom/value /param param keyrealtime_scheduling/key value/value /param param key_coordinate/key value(20, 20)/value /param param key_rotation/key value0/value /param /block block keygr_noise_source_x/key param keyid/key valuegr_noise_source_x/value /param param key_enabled/key valueTrue/value /param param keytype/key valuecomplex/value /param param keynoise_type/key valuegr.GR_GAUSSIAN/value /param param keyamp/key value.1/value /param param keyseed/key value42/value /param param key_coordinate/key value(409, 323)/value /param param key_rotation/key value0/value /param /block block keyvariable_slider/key param keyid/key valuesamp_rate/value /param param key_enabled/key valueTrue/value /param param keylabel/key value/value /param param keyvalue/key value32000/value /param param keymin/key value0/value /param param keymax/key value32000/value /param param keynum_steps/key value100/value /param param keyslider_length/key value200/value /param param keyslider_type/key valuehorizontal/value /param param keygrid_pos/key value/value /param param key_coordinate/key value(91, 237)/value /param param key_rotation/key value0/value /param /block block keygr_sig_source_x/key param keyid/key valuegr_sig_source_x/value /param param key_enabled/key valueTrue/value /param param keytype/key valuecomplex/value /param param keysamp_rate/key valuesamp_rate/value /param param keywaveform/key valuegr.GR_COS_WAVE/value /param param keyfreq/key value1000/value /param param keyamp/key value1/value /param param keyoffset/key value0/value /param param key_coordinate/key value(230, 95)/value /param param key_rotation/key value0/value /param /block block keygr_add_vxx/key param keyid/key valuegr_add_vxx/value /param param key_enabled/key valueTrue/value /param param keytype/key valuecomplex/value /param param keynum_inputs/key value2/value /param param keyvlen/key value1/value /param param key_coordinate/key value(457, 196)/value /param param key_rotation/key value0/value /param /block block keyvariable_slider/key param keyid/key valuebb_freq/value /param param key_enabled/key valueTrue/value /param param keylabel/key value/value /param param keyvalue/key value0/value /param param keymin/key value-10e4/value /param param keymax/key value10e4/value /param param keynum_steps/key value100/value /param param keyslider_length/key value200/value /param param keyslider_type/key valuehorizontal/value /param param keygrid_pos/key value/value /param param key_coordinate/key value(254, 239)/value /param param key_rotation/key value0/value /param /block block keygr_throttle/key param keyid/key valuegr_throttle/value /param param key_enabled/key valueTrue/value /param param
[Discuss-gnuradio] Re: change variables in the FFT Plot the 2.
feldmaus feldmann_markus at gmx.de writes: Not really RIGHT: def set_samp_rate(self, samp_rate): self.samp_rate = samp_rate self.wxgui_fftsink2.set_samp_rate(self.samp_rate) How is the Name of the method to set up the samp_rate ? self.wxgui_fftsink2.set_sample_rate(self.samp_rate) ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio
Re: [Discuss-gnuradio] Re: change variables in the FFT Plot the 2.
Please follow the directions to enable the wxgui - open gl sinks: http://gnuradio.org/trac/browser/gnuradio/trunk/gr-wxgui/README.gl Let me know how it works for you! -Josh feldmaus wrote: feldmaus feldmann_markus at gmx.de writes: Not really RIGHT: def set_samp_rate(self, samp_rate): self.samp_rate = samp_rate self.wxgui_fftsink2.set_samp_rate(self.samp_rate) How is the Name of the method to set up the samp_rate ? self.wxgui_fftsink2.set_sample_rate(self.samp_rate) ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio