Re: [Discuss-gnuradio] ADC sampling window

2010-06-09 Thread Brian Padalino
On Wed, Jun 9, 2010 at 8:27 PM, Roberto de Matos wrote: > Hello, > > The maximum sampling window of USRP2's ADC is 50MHz or 100MHz? > Because of Nyquist Theorem the straight answer is 50MHz, once the ADC runs at > 100MHz. However if we use the complex samples (quadrature sampling) the > answer i

RE: [Discuss-gnuradio] complex vector output of a block

2010-06-09 Thread Samy Sammour
Hi John, Thanks for the message sorry for using MATLAB notation without clarification 2:12 = from 2 upto 12. To simplify the case, I wrote the following code that actually carry the same problem concept: ***

[Discuss-gnuradio] ADC sampling window

2010-06-09 Thread Roberto de Matos
Hello, The maximum sampling window of USRP2's ADC is 50MHz or 100MHz? Because of Nyquist Theorem the straight answer is 50MHz, once the ADC runs at 100MHz. However if we use the complex samples (quadrature sampling) the answer is 100MHz. So, which is right?? Thank you, Roberto de Matos __

Re: [Discuss-gnuradio] complex vector output of a block

2010-06-09 Thread Sammour
Tom, I only need a single sample from each stream to generate the vector ( there is a method of doing this in signal processing) and I am inherting from gr_sync_block as the block is 1:1. I am also returning noutput_items and didn't use consume_each() of course. Thanks anyway. Still thinking :)

Re: [Discuss-gnuradio] complex vector output of a block

2010-06-09 Thread Tom Rondeau
On Wed, Jun 9, 2010 at 5:37 PM, Sammour wrote: > > HI Eric, > > Thanks for replying. My block has N=2:12 complex input streams and one > complex vector output stream of length N^2 (represents a reshaped NxN > matrix). The block basically is meant to calculate the covariance matrix > using a MATLAB

Re: [Discuss-gnuradio] complex vector output of a block

2010-06-09 Thread Sammour
HI Eric, Thanks for replying. My block has N=2:12 complex input streams and one complex vector output stream of length N^2 (represents a reshaped NxN matrix). The block basically is meant to calculate the covariance matrix using a MATLAB library. The signatures are: input: gr_make_io_signature (

Re: [Discuss-gnuradio] complex vector output of a block

2010-06-09 Thread Eric Blossom
On Wed, Jun 09, 2010 at 03:40:07AM -0700, Sammour wrote: > > Dear all, > > I'm writing a block that outputs a vector of complex number inheriting from > gr_sync_block. In my code I wrote: > gr_complex *out =(gr_complex *) output_items[0]; > gr_complex out_vector [N*N]; > > where out_

Re: [Discuss-gnuradio] Why does general_work return large number?

2010-06-09 Thread Eric Blossom
On Wed, Jun 09, 2010 at 11:57:24AM +0100, Zohair M. Abu Shaban wrote: > > Hi Eric, > > I have read what you recommended but still haven't understood what > the significance of this number is. I have another block that > generates a vector of 4 elements and the noutput_items is almost 1/4 > the nu

Re: [Discuss-gnuradio] complex vector output of a block

2010-06-09 Thread Sammour
Thanks again Martin. I believe the problem is not in the algorithm as I actually tested it and can print the output of it on the screen as you suggested (I mean "out" in my original post). Everything excellent at this stage. However, the problem is that the block in GRC doesn't generate output.

Re: [Discuss-gnuradio] complex vector output of a block

2010-06-09 Thread Martin Braun
On Wed, Jun 09, 2010 at 06:06:01AM -0700, Sammour wrote: > Thanks for replying. N is designed to be 2:12. > The block uses a number of inputs (N) to update a matrix that I am sending > to the output as a vector that will be reshaped in the next block when it > is used. Do you think that my progra

Re: [Discuss-gnuradio] complex vector output of a block

2010-06-09 Thread Sammour
To isolate the problem, I removed all the complex code and wrote the following in work() to generate a vector of random numbers: gr_complex *out =(gr_complex *) output_items[0]; unsigned int index = 0; for (unsigned int m =1; m<=4; m++) { *(out+inde

Re: [Discuss-gnuradio] RFX400 Tuning & WBX Comparison

2010-06-09 Thread Matt Ettus
On 06/09/2010 12:12 AM, Andrew Gilbett wrote: Hi, When I ask my RFX400 to tune a frequency for example 438.600MHz I get the following output. A: Flex 400 Tx MIMO B r.baseband_frequency = 44200.0 r.dxc_frequency = -340.0 r.residual_frequency = -0.381469726562

Re: [Discuss-gnuradio] complex vector output of a block

2010-06-09 Thread Sammour
Dear Martin, Thanks for replying. N is designed to be 2:12. The block uses a number of inputs (N) to update a matrix that I am sending to the output as a vector that will be reshaped in the next block when it is used. Do you think that my programme takes much time to execute? Cheers, Sam --

Re: [Discuss-gnuradio] complex vector output of a block

2010-06-09 Thread Martin Braun
On Wed, Jun 09, 2010 at 03:40:07AM -0700, Sammour wrote: > Dear all, > > I'm writing a block that outputs a vector of complex number inheriting from > gr_sync_block. In my code I wrote: > gr_complex *out =(gr_complex *) output_items[0]; > gr_complex out_vector [N*N]; > > where out_vec

[Discuss-gnuradio] Re: gnuradio.org seems to be down

2010-06-09 Thread Martin DvH
On Wed, 2010-06-09 at 07:09 -0400, Johnathan Corgan wrote: > On Wed, Jun 9, 2010 at 07:07, Martin DvH wrote: > > > The gnuradio.org server seems to be down. (9 Jun 2010) > > Works for me here. Might be a routing issue for you, try seeing where > traceroute fails. It seems that tinet is having p

Re: [Discuss-gnuradio] gnuradio.org seems to be down

2010-06-09 Thread John Orlando
On Wed, Jun 9, 2010 at 6:07 AM, Martin DvH wrote: > The gnuradio.org server seems to be down. (9 Jun 2010) > > Even a ping times out. Hmm...works for me in the US (Illinois). -- John Orlando CEO/System Architect Epiq Solutions www.epiq-solutions.com

Re: [Discuss-gnuradio] gnuradio.org seems to be down

2010-06-09 Thread Sammour
Well, it seems to be working here! Martin Dvh wrote: > > The gnuradio.org server seems to be down. (9 Jun 2010) > > Even a ping times out. > > > Martin > > > ___ > Discuss-gnuradio mailing list > Discuss-gnuradio@gnu.org > http://lists.gnu.org/ma

[Discuss-gnuradio] gnuradio.org seems to be down

2010-06-09 Thread Martin DvH
The gnuradio.org server seems to be down. (9 Jun 2010) Even a ping times out. Martin ___ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org http://lists.gnu.org/mailman/listinfo/discuss-gnuradio

RE: [Discuss-gnuradio] Why does general_work return large number?

2010-06-09 Thread Zohair M. Abu Shaban
Hi Eric, I have read what you recommended but still haven't understood what the significance of this number is. I have another block that generates a vector of 4 elements and the noutput_items is almost 1/4 the number of first block. Any further help please? Thanks again, Zohair > Date:

[Discuss-gnuradio] complex vector output of a block

2010-06-09 Thread Sammour
Dear all, I'm writing a block that outputs a vector of complex number inheriting from gr_sync_block. In my code I wrote: gr_complex *out =(gr_complex *) output_items[0]; gr_complex out_vector [N*N]; where out_vector is the array where the actual output values are stored. I copied

Re: [Discuss-gnuradio] usrp_spectrum_sense vs. usrp_fft

2010-06-09 Thread killoqg
Hi, I'm having the same problem: the output of my spectrum analyzer and the output of the spectrum_sense.py doesn't match. I'm trying to detect activity int the GSM900 band, but it's impossible with the outputs I obtain. I was trying to correct the code and I think that your formula is incorr

[Discuss-gnuradio] RFX400 Tuning & WBX Comparison

2010-06-09 Thread Andrew Gilbett
Hi, When I ask my RFX400 to tune a frequency for example 438.600MHz I get the following output. A: Flex 400 Tx MIMO B        r.baseband_frequency = 44200.0        r.dxc_frequency = -340.0        r.residual_frequency = -0.381469726562        r.inverted = False This means that the synthesi