Re: [Discuss-gnuradio] data from flow graph is not updated

2011-05-22 Thread lishan_wh
stops, the data will not change anyway. -- Yang Sent withSparrow On 2011年5月22日星期日 at 下午10:13, lishan_wh wrote: Hi, all I met a problem when I tried to read data from USRP. I hope someone can help me. Thanks. Here is my flow graph: source_c --> keep_one_in_n --> g.head --> gr.compl

[Discuss-gnuradio] data from flow graph is not updated

2011-05-22 Thread lishan_wh
Hi, all I met a problem when I tried to read data from USRP. I hope someone can help me. Thanks. Here is my flow graph: source_c --> keep_one_in_n --> g.head --> gr.complex_to_mag --> gr.vector_sink_f if __name__ == '__main__': tb = top_block() try: tb.start()

Re:Re: [Discuss-gnuradio] import qtgui error

2010-12-22 Thread lishan_wh
Tom, I use Ubuntu 9.04 and QWT-5.0.2. Thank you! Ally At 2010-12-22 22:55:41,"Tom Rondeau" wrote: >2010/12/22 lishan_wh : >> I tried the code of 'Tutorial - Using the QT GUI Blocks in GNU Radio', but >> error occurred. >> >> Traceback (

[Discuss-gnuradio] import qtgui error

2010-12-22 Thread lishan_wh
I tried the code of 'Tutorial - Using the QT GUI Blocks in GNU Radio', but error occurred. Traceback (most recent call last): File "qt_basics.py", line 4, in from gnuradio.qtgui import qtgui File "/opt/gnuradio/3.3.0/lib/python2.6/site-packages/gnuradio/qtgui/qtgui.py", line 6, in

[Discuss-gnuradio] about samples

2010-12-20 Thread lishan_wh
Hi, I'm trying to use USRP to receive signals and collect the samples.Here is the flow graph: usrp_source_c-->stream_to_vector-->complex_to_mag-->vector_sink_f dst = gr.vector_sink_f() data = dst.data() In my opinion, what stores in data should be the amplitude of the samples.

[Discuss-gnuradio] obtain data before FFT

2010-12-05 Thread lishan_wh
Hi, all I want to plot a figure with the samples from usrp, but I have some questions. Here is the flowgraph: usrp.source_c --> gr.streams_to_vector(gr.sizeof_gr_complex*1, 1) --> gr.complex_to_mag(1) --> gr.message_sink(gr.sizeof_float*1, self.msg_sink_msgq_out, True) Here, self.msg_sink_msgq_o

[Discuss-gnuradio] about abtaining sample value

2010-12-04 Thread lishan_wh
Hi, all I want to plot a figure with the samples from usrp, but I have some questions. Here is the flowgraph: usrp.source_c --> gr.streams_to_vector(gr.sizeof_gr_complex*1, 1) --> gr.complex_to_mag(1) --> gr.message_sink(gr.sizeof_float*1, self.msg_sink_msgq_out, True) Here, self.msg_sink_msgq_o

[Discuss-gnuradio] how to get dBm value from usrp_spectrum_sense.py

2010-06-17 Thread lishan_wh
Hi, I wonder how can I get the dBm value by using usrp_spectrum_sense.py. should I do it as follows? fft = gr.fft_vcc() c2mag = gr.complex_to_mag_squared() (or without squared?) log = gr.nlog10_ff() stats = gr.bin_statistics_f() self.connect(self.u,s2v,fft,c2mag,log,stats) in main functio

[Discuss-gnuradio] about usrp_spectrum_sense.py

2010-06-14 Thread lishan_wh
Hi, I have some difficulties in unserstanding the statements belowin usrp_spectrum_sense.py. fft = gr.fft_vcc(self.fft_size, True, mywindow) power = 0 for tap in my wondow: power += tap*tap What is stored in window and what is tap? Where is the FFT data stored? I turned to C++ file gr

Re:Re: [Discuss-gnuradio] about tunnel.py

2010-04-26 Thread lishan_wh
Thomas, Thank you for you answer. Do you mean I can not achieve the goal by modifying its softare code beause of hardware restriction ? I have nothing to do except using more usrps?Thank you! lishan_wh在2010-04-26 21:55:57,"Thomas Tsou" 写道: >2010/4/26 lishan_wh : >> Hi

[Discuss-gnuradio] about tunnel.py

2010-04-26 Thread lishan_wh
Hi all, I want to use tunnel.py to make a usrp with two daughter boards work as two pieces of wireless cards. The first time I run tunnel.py, it works well, and generate gr0. But when I run tunnel.py for the second time (in another terminal) to configure the other daughter board, it turned out

[Discuss-gnuradio] about tunnel.py

2010-04-26 Thread lishan_wh
Hi all, I want to use tunnel.py to make a usrp with two daughter boards work as two pieces of wireless cards. The first time I run tunnel.py, it works well, and generate gr0. But when I run tunnel.py for the second time (in another terminal) to configure the other daughter board, it turned out