So basically I have a gui, with a button press. On button press it runs a script that has a startBackground command in it. But before the figure from the script can even pop up, I get an error stating that a session was closed while it was running. However, I want the script to run until the user closes the figure. Basically it is a live figure, showing live inputed data during a certain range.
How do I do this?
After I run the script I can extend the time the script is running by putting a pause command, but I want the script to continue for an indeterminate amount of time, basically until the user closes it.