While loop bug? Stuck on empty

Hi Thanks for the help.

@GoToLoop yeah at the moment the the function that is talking to the plotter is called from the main draw thread. I should put this in another thread I guess? I don’t want to call noLoop() as I want an animation to still run on screen while the plotter is drawing the image. (Although at the moment of course this is not working as the draw() function needs to wait until the plotter has done its thing. So I will need to thread this anyway.

@quark Okay, good idea. Is Thread.sleep(20) the right way to go about this? this seems to throw an interupt exception.

Thanks
T