>
> is there a way to replay gr.file_source?
> by replay, I mean controlled replay, not the repeat that's already an option
> within the function.
> I can't use the repeat, because I need the file to play once (and just
> once), change the frequency of the daughterboard, then play the file just
> once, and so on.
> So while the daughterboard is retuning, I need the file to stop playing, and
> I need to make sure the board is retuned before the file starts playing so
> no information is lost.
>
> Any help would be great.
>
> Thanks a lot.
Take a look at the documentation for that function:
http://gnuradio.org/doc/doxygen/index.html
There is a "seek" method that you can use. To reset the source to the
beginning of the file, you can use seek(0, SEEK_SET).
Tom
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
No comments:
Post a Comment