RunPauseModule is an example of how to add run / pause control to your program, so that each time the center button is pushed, your program switches between running and paused.
>> Run-Pause Module Sample Program (.zip)