Re: [Discuss-gnuradio] Strange output of "0" at the terminal

2012-02-24 Thread Wu Ting
Hi! Marcus, The sample rate is 4MHz. I also tried 1MHz and 10MHz. On my laptop, the frequency of 'O' is related with sampling rate and is quite common. On the desktop, I always have to wait quite a while before an 'O' is printed. But it is printed even when the sampling rate is 200kHz. Following

Re: [Discuss-gnuradio] Strange output of "0" at the terminal

2012-02-24 Thread mleech
Modern disk subsystems can easily sustain 80MB or more per second even on relativley wimpy hardware What is the sample rate involved here? Seriously, I've been able to stream multi-MHz of bandwidth to disk for long periods without any 'O' happening. -Marcus On Fri, 24 Feb 2012 11:23:05 -0

Re: [Discuss-gnuradio] Strange output of "0" at the terminal

2012-02-24 Thread Wu Ting
I tried the code without write(), and it still has the problem. But it seems to be less frequent. I will try your method. Thank you! > You are writing to a file in a blocking thread, its not the CPU it's > the hard drive. You should try the program without the write. Then if > it is the problem yo

Re: [Discuss-gnuradio] Strange output of "0" at the terminal

2012-02-24 Thread Andrew Davis
You are writing to a file in a blocking thread, its not the CPU it's the hard drive. You should try the program without the write. Then if it is the problem you should write out to a file on a ram disk then save it to a real disk later. 2012/2/24 Wu Ting : > Hi! Thank you for your suggestions! > >

Re: [Discuss-gnuradio] Strange output of "0" at the terminal

2012-02-24 Thread Wu Ting
Hi! Thank you for your suggestions! I realized it is a problem related with computer speed. Today I used a laptop to run the same code, and 'O' is printed much more frequently. However, the computer I'm using is a quite good one. It has intel i7 3.4GHz 8-core, and when the code is running, CPU is

Re: [Discuss-gnuradio] Strange output of "0" at the terminal

2012-02-23 Thread Tom Rondeau
2012/2/23 Wu Ting > Hi! Thank you for your response. I've kept working on this problem for two > days, but still cannot find a way to solve it. > > I simplified the program and have determined that the 'O' is produced is > this while loop: > > while msgCount<1: >msg = tb.queue.delete_head

Re: [Discuss-gnuradio] Strange output of "0" at the terminal

2012-02-23 Thread Andrew Davis
it happens? Any suggestions > will be greatly appreciated. > > Wu > > -----Original Message- > From: Andrew Davis [mailto:glneolistm...@gmail.com] > Sent: 2012年2月23日 0:15 > To: Wu Ting; discuss-gnuradio@gnu.org > Subject: Re: [Discuss-gnuradio] Strange output of &quo

Re: [Discuss-gnuradio] Strange output of "0" at the terminal

2012-02-23 Thread Wu Ting
or at least catch this error when it happens? Any suggestions will be greatly appreciated. Wu -Original Message- From: Andrew Davis [mailto:glneolistm...@gmail.com] Sent: 2012年2月23日 0:15 To: Wu Ting; discuss-gnuradio@gnu.org Subject: Re: [Discuss-gnuradio] Strange output of "0&qu

Re: [Discuss-gnuradio] Strange output of "0" at the terminal

2012-02-22 Thread Andrew Davis
io-bounces+wu.ting=comf5.comm.eng.osaka-u.ac...@gnu.org] > On Behalf Of Wu Ting > Sent: 2012年2月22日 14:48 > To: discuss-gnuradio@gnu.org > Subject: [Discuss-gnuradio] Strange output of "0" at the terminal > > > > Hi all, > > > > I’m now using message_sink a

Re: [Discuss-gnuradio] Strange output of "0" at the terminal

2012-02-22 Thread Wu Ting
.comm.eng.osaka-u.ac...@gnu.or g] On Behalf Of Wu Ting Sent: 2012年2月22日 14:48 To: discuss-gnuradio@gnu.org Subject: [Discuss-gnuradio] Strange output of "0" at the terminal Hi all, I’m now using message_sink and msg_queue to receive data from USRP. I do some calculation for all the d

[Discuss-gnuradio] Strange output of "0" at the terminal

2012-02-21 Thread Wu Ting
Hi all, I'm now using message_sink and msg_queue to receive data from USRP. I do some calculation for all the data in the msg_queue one by one and write some of them into a file. Everything seems to be working smoothly. But once in a while, a "0" is printed in the terminal. (There is no code to