[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] looping with work() function
From: |
Martin Braun |
Subject: |
Re: [Discuss-gnuradio] looping with work() function |
Date: |
Tue, 11 Mar 2014 15:04:00 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
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 not used anywhere. I would like to do a similar thing but
> cannot avoid work(). Is there a way around?
work() is called in every single block. This is how blocks work. Have a
look at the "out of tree module" tutorial.
Martin
>
>
> On Tue, Mar 11, 2014 at 6:19 PM, Martin Braun <address@hidden
> <mailto:address@hidden>> wrote:
>
> 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.
> > 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.
> > At this point, the flowgraph should stop and start again with a new
> > "start sign" for next iteration and so on. I am planning to plot the
> > number of packets transmitted before receiving an ACK against this
> > "start sign". Therefore, I need my flowgraph to execute several times.
> > I hope this description explains my intention. I am not very familiar
> > with scheduler. How can I use the scheduler to do this?
>
> If you're using a flow graph, you use the scheduler automatically, you
> don't need to set it up or anything.
>
> Have a look at the file I recommended. If you feel you don't understand
> something, first read the introductory documents on the wiki, as well as
> http://gnuradio.org/redmine/projects/gnuradio/wiki/Simulations.
>
> Good luck,
> Martin
>
>
> >
> >
> > On Tue, Mar 11, 2014 at 3:12 PM, Activecat <address@hidden
> <mailto:address@hidden>
> > <mailto:address@hidden <mailto:address@hidden>>> wrote:
> >
> > On Tue, Mar 11, 2014 at 5:04 PM, Martin Braun
> > <address@hidden <mailto:address@hidden>
> <mailto:address@hidden <mailto:address@hidden>>> wrote:
> >
> > 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() as input
> elements, than
> > that is possible.
> > Please describe the parameters in details.
> >
> >
> > > 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 block is not
> empty).
> > > 2. The control should come back to the main() function
> and the
> > next
> > > iteration should start with a new set of parameters and
> again upon
> > > satisfying a certain condition the flowgraph should exit.
> >
> >
> > In flow-graph there is no main() function, but only the
> scheduler in
> > the background.
> > Please give specific examples of what you are trying to
> accomplish.
> >
> > Regards,
> > Activecat
> >
> > _______________________________________________
> > Discuss-gnuradio mailing list
> > address@hidden <mailto:address@hidden>
> <mailto:address@hidden <mailto:address@hidden>>
> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> >
> >
> >
> >
> > _______________________________________________
> > Discuss-gnuradio mailing list
> > address@hidden <mailto:address@hidden>
> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
> >
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> address@hidden <mailto:address@hidden>
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
- [Discuss-gnuradio] looping with work() function, Sumedha Goyal, 2014/03/11
- Re: [Discuss-gnuradio] looping with work() function, Martin Braun, 2014/03/11
- Re: [Discuss-gnuradio] looping with work() function, Activecat, 2014/03/11
- Re: [Discuss-gnuradio] looping with work() function, Sumedha Goyal, 2014/03/11
- Re: [Discuss-gnuradio] looping with work() function, Activecat, 2014/03/11
- Re: [Discuss-gnuradio] looping with work() function, Sumedha Goyal, 2014/03/13
- Re: [Discuss-gnuradio] looping with work() function, Activecat, 2014/03/13
- Message not available
- Re: [Discuss-gnuradio] looping with work() function, Sumedha Goyal, 2014/03/25