Charge the capacitor.
Flip the switch.
Not sure exactly how this works.
If you can explain it, leave a comment.
FYI: Adjusting the viewing speed seems to affect the absolute amplitude and duration of the generated wave. I can't explain this, I can only assume it's a bug in the software.