Newbie here!! Starting a loop while its still finishing?

I'm not sure how it should be, but I've plotted both mine and toby's output. I added what I suspect could be the sine wave of an LRC circuit on mine. I'd like to figure out how it's done as well as I do have a few 3-phase motors I'd like to run.

3-phase.png