[Discuss-gnuradio] Slider variable problem

2010-09-14 Thread Samy Sammour
Hello guys, I have created my block but which takes a variable N. I want to change this variable using the slider variable, I understand that I need to define a setVariable(N) but at runtime I get error the this is not defined in the myblock_sptr module. I added the function in the inside

RE: [Discuss-gnuradio] Using gr_sync_decimator [was: How to use forecast()?]

2010-08-06 Thread Samy Sammour
Subject: Re: [Discuss-gnuradio] Using gr_sync_decimator [was: How to use > forecast()?] > > On Fri, Aug 06, 2010 at 06:32:32AM -0700, Sammour wrote: > > > > Hi Eric, > > I have a similar issue as the one described above and I have read some of > > the exampl

Re: [Discuss-gnuradio] How to use forecast()?

2010-08-06 Thread Sammour
Hi Eric, I have a similar issue as the one described above and I have read some of the examples in the directory provided but they seem to be different from what I want to implement. I want to collect L samples from N channels and store them in a buffer, do processing and output a vector of length

[Discuss-gnuradio] How do the Scheduler and the flowgraph work?

2010-07-15 Thread Sammour
I have a basic question regarding GNURadio scheduler and how the flowgraph works. I am using gr_sync_block but my question are valid for gr_block >From the online tutorial about how to write a block I read: 87for (int i = 0; i < noutput_items; i++){ 88 out[i] = in[i] * in[i]; 89}

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

2010-06-13 Thread Sammour
you guide me to better documentation, I will be very grateful. Cheers, Sam Eric Blossom wrote: > > On Sat, Jun 12, 2010 at 03:40:21PM -0700, Sammour wrote: >> >> Thanks for everyone, I sorted the problem out. I needed to increment >> "out" >> after memcpy and

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

2010-06-12 Thread Sammour
Thanks for everyone, I sorted the problem out. I needed to increment "out" after memcpy and then return noutput_items/(N*N). Cheers, Sam Sammour wrote: > > > Hi John, Thanks for the message sorry for using MATLAB notation without > clarification 2:12 = from 2 upto 12

[Discuss-gnuradio] GRC: Need help in plotting a vector vs index

2010-06-12 Thread Samy Sammour
Dear engineers, I wonder if there's a way to plot a vector content vs. index in GRC? I mean analogous to MATLAB command: a=1:100; plot(a); Thanks Sam _ http://clk.atdmt.com/UKM/go/197222

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: ***

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 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 Sammour
generate output. I didn't want to give details in order not to divert direction of the problem investigation. However, the block finds the autocovariance matrix of N inputs using the update method. Best regards, Sam Martin Braun-4 wrote: > > On Wed, Jun 09, 2010 at 06:06:01AM -0700

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] 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] 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] 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

[Discuss-gnuradio] print the output of a block python

2010-06-05 Thread Sammour
Dear engineers for debugging purpose, can we print the output of a block in python file generated by swig? Thanks -- View this message in context: http://old.nabble.com/print-the-output-of-a-block-python-tp28789113p28789113.html Sent from the GnuRadio mailing list archive at Nabble.com. __

Re: [Discuss-gnuradio] GRC s ymbolic-link is not working‏

2010-06-04 Thread Sammour
Thanks a lot... it works Sammour wrote: > > Hi all, > > I have installed gnuradio with grc. the bootstrap, configure, make, make > check and sudo make install all of them ran nicely. However when I type > "grc" in the terminal it says: > > The program 

[Discuss-gnuradio] GRC symbolic-link is not working‏

2010-06-04 Thread Sammour
Hi all, I have installed gnuradio with grc. the bootstrap, configure, make, make check and sudo make install all of them ran nicely. However when I type "grc" in the terminal it says: The program 'grc' is currently not installed. You can install it by typing: sudo apt-get install grc grc: comm

[Discuss-gnuradio] GRC symbolic-link is not working

2010-06-04 Thread Samy Sammour
Hi all, I have installed gnuradio with grc. the bootstrap, configure, make, make check and sudo make install all of them ran nicely. However when I type "grc" in the terminal it says: The program 'grc' is currently not installed. You can install it by typing: sudo apt-get install grc grc: c

Re: [Discuss-gnuradio] Output not showing in GRC

2010-06-01 Thread Sammour
FLAGS = \ $(NO_UNDEFINED)\ -L$(MATLAB_ROOT)/runtime/glnx86 libgnuradio_arraycomms_la_LIBADD = \ $(GNURADIO_CORE_LA)\ -L/usr/lib -lmyfirstblock where myfirstblock is a library generated in MATLAB Cheers, Sam Johnathan Corgan-2 wrote: > > On Mon, May 31, 2010 at 14:

RE: [Discuss-gnuradio] Output not showing in GRC

2010-05-31 Thread Samy Sammour
t showing in GRC > > the file sink is probably not flushing to disk (common issue). > > Try using a head block and the run to completion option and see what > happens. Upon completion, the file sink destructor will flush. > > -Josh > > On 05/31/2010 02:57 PM, Sammour w

[Discuss-gnuradio] Output not showing in GRC

2010-05-31 Thread Sammour
Hello guys, As my first gnuradio block, I have built a block to multiply two complex numbers using MATLAB library. I compiled my block and wrote a python programme to test it and everything went very nicely. I used this c++ statement in the general_work method to see the output of the block: