On Friday, October 4, 2013, Marcus Müller wrote:

> Hi Gui,
>
> that's how most sample sources work anyway.
> So just find the source that suits your needs best (in your case: Wav
> file source), connect it to your signal processing blocks and run the
> flowgraph. It will stop when the source signals that it's done, which
> will happen when the file end is reached.
>
> Happy Hacking!
> Marcus
>
> On Fri, 2013-10-04 at 17:37 -0300, Gui Ritter wrote:
> > Hi everyone.
> >
> >
> > I just started using GRC for a college assignment, but I'm having a
> > hard time to find what I need to know in order to do what I want.
> >
> >
> > I want to make a flowgraph that works with a limited sample, like a
> > WAV file. So I'd like to know how to stop the flowgraph after the
> > processing is done, or something similar.
> >
> >
> > Thanks in advance.
> > _______________________________________________
> > Discuss-gnuradio mailing list
> > Discuss-gnuradio@gnu.org <javascript:;>
> > https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org <javascript:;>
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>

That's correct that file playback type sinks will end the flowgraph after
reading every item. As a more general alternative if you have a live source
and just want to use X samples you can use the head block.
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to