I am having some trouble getting the seek() function in the file source
My program has a non-repeating file source, and a GUI button with the
callback function set_button(). In the callback I have written the below
code, which should reset the file source to the beginning of the file:
When I press the button before the file source has streamed to the end,
seek() works fine and resets the file source to the beginning. When I
the button after the file source has streamed to the end and stopped,
seek() does not work and nothing happens in the code. I suspect this has
something to do with the scheduler thinking this block is done and
it or deleting it or something, but I have been unable to get it working
the way I want it to.
Any ideas what I am doing wrong?