Re: [Discuss-gnuradio] looping with work() function

2014-03-24 Thread Sumedha Goyal
Hi Activecat The description that you have given matches quite closely to my requirements. Kindly send me the sample code. I will try it out with my setup. We need to set_max_noutput_items() to a small value, so that the block response fast enough to the ACK signal. This block should

Re: [Discuss-gnuradio] looping with work() function

2014-03-13 Thread Activecat
Dear Sumedha, My idea is to create a custom block of type general. This block takes an input from a File Source. It has an output connect to USRP (for transmitting signal). It has another input port connected to USRP for receiving ACK. See below inline answers for further elaboration. On Thu,

Re: [Discuss-gnuradio] looping with work() function

2014-03-11 Thread Martin Braun
On 03/11/2014 06:10 AM, Sumedha Goyal wrote: Hello I am executing a flowgraph where I pass different parameters to the work() function of my block in every iteration. I'm not sure I'm understanding you correctly, but this is not how you use GNU Radio blocks. Have a look at

Re: [Discuss-gnuradio] looping with work() function

2014-03-11 Thread Activecat
On Tue, Mar 11, 2014 at 5:04 PM, Martin Braun martin.br...@ettus.comwrote: On 03/11/2014 06:10 AM, Sumedha Goyal wrote: Hello I am executing a flowgraph where I pass different parameters to the work() function of my block in every iteration. If the parameters could be fed into work()

Re: [Discuss-gnuradio] looping with work() function

2014-03-11 Thread Sumedha Goyal
My top_block class represents the whole flowgraph. The class test_demo is one of the blocks of this flowgraph for which its own work() function is defined. The test_demo checks for a start sign(given by the user) and participates in data transmission process and upon receiving an ACK for success

Re: [Discuss-gnuradio] looping with work() function

2014-03-11 Thread Martin Braun
On 03/11/2014 01:31 PM, Sumedha Goyal wrote: My top_block class represents the whole flowgraph. The class test_demo No, it doesn't. It doesn't have any connect() calls or anything. This is not a flow graph. is one of the blocks of this flowgraph for which its own work() function is defined.

Re: [Discuss-gnuradio] looping with work() function

2014-03-11 Thread Activecat
Dear Sumedha Goyal, The test_demo checks for a start sign(given by the user) and participates in data transmission process and upon receiving an ACK for success should stop further transmission. Q1: What do you mean by participates in data transmission process? Does it just send out what it

Re: [Discuss-gnuradio] looping with work() function

2014-03-11 Thread Martin Braun
Please stay on the mailing list. On 03/11/2014 02:37 PM, Sumedha Goyal wrote: I haven't shown the whole code here but the top_class has all the connect() functions required to connect the various blocks. I've gone through the link that you have sent me. In this example, the work() function is

Re: [Discuss-gnuradio] looping with work() function

2014-03-11 Thread Sumedha Goyal
1. There is a file source that frames data packets for the test_demo. This is part of a transmitter USRP. 2. I have another USRP as receiver that sends an ACK upon reception of data packets to the transmitter. 3. Start sign is a threshold value. If the packet information (calculated by some

Re: [Discuss-gnuradio] looping with work() function

2014-03-11 Thread Activecat
Dear Sumedha Goyal, On Wed, Mar 12, 2014 at 1:51 AM, Sumedha Goyal sumedha1...@gmail.com wrote: 1. There is a file source that frames data packets for the test_demo. This is part of a transmitter USRP. 2. I have another USRP as receiver that sends an ACK upon reception of data packets to the

[Discuss-gnuradio] looping with work() function

2014-03-10 Thread Sumedha Goyal
Hello I am executing a flowgraph where I pass different parameters to the work() function of my block in every iteration. 1. I would like my flowgraph to execute once with a certain set of parameters and on satisfying a certain condition, it should stop execution (even if the queue/buffer of the