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
Re: [Discuss-gnuradio] Re: change variables in the FFT Plot the 2.
feldmaus wrote: Josh Blum 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 deletes the manually inserted class-method, 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 file without loosing this by the next start of ? 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.
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 Thu Feb 5 16:02:47 2009 options id options _enabled True title FFT Test author unknown description untitled flow graph window_size 1280, 1024 generate_options wx_gui category Custom realtime_scheduling _coordinate (20, 20) _rotation 0 gr_noise_source_x id gr_noise_source_x _enabled True type complex noise_type gr.GR_GAUSSIAN amp .1 seed 42 _coordinate (409, 323) _rotation 0 variable_slider id samp_rate _enabled True label value 32000 min 0 max 32000 num_steps 100 slider_length 200 slider_type horizontal grid_pos _coordinate (91, 237) _rotation 0 gr_sig_source_x id gr_sig_source_x _enabled True type complex samp_rate samp_rate waveform gr.GR_COS_WAVE freq 1000 amp 1 offset 0 _coordinate (230, 95) _rotation 0 gr_add_vxx id gr_add_vxx _enabled True type complex num_inputs 2 vlen 1 _coordinate (457, 196) _rotation 0 variable_slider id bb_freq _enabled True label value 0 min -10e4 max 10e4 num_steps 100 slider_length 200 slider_type horizontal grid_pos _coordinate (254, 239) _rotation 0 gr_throttle id gr_throttle _enabled True type complex samples_per_second samp_rate vlen 1 _coordinate (528, 72) _rotation 0 wxgui_scopesink2 id wxgui_scopesink2_0 _enabled False type complex title Scope Plot samp_rate samp_rate frame_decim 15 v_scale 0 t_scale .001 marker set_format_line num_inputs 1 grid_pos _coordinate (692, 296) _rotation 0 wxgui_fftsink2 id wxgui_fftsink2 _enabled True type complex title FFT Plot samp_rate samp_rate baseband_freq bb_freq y_per_div 10 y_divs 10 ref_level 50 fft_size 512 fft_rate 15 avg_alpha 0 average False peak_hold False grid_pos _coordinate (706, 47) _rotation 0 gr_throttle wxgui_fftsink2 0 0 gr_sig_source_x gr_add_vxx 0 0 gr_add_vxx gr_throttle 0 0 gr_noise_source_x gr_add_vxx 0 1 gr_throttle wxgui_scopesink2_0 0 0 ___ 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 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