LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Pause/resume

I need help implementing a pause/resume feature in my program that will pause a graph when the trace on the graph displays zero

and I would like for it to stay in the pause mode until a button from the front panel is pressed.

Thank you.

0 Kudos
Message 1 of 3
(3,297 Views)

Hi Russellg,

do you read your data from a device? You can use a state machine architecture. Ploting your data into the graph is state "run". If you get zero you change to state "pause". You can use a queue with a timeout connected. The timeout should be stored in a shift register. If you are in "run" mode the timeout is your minimal sample rate. If you change to "pause", then change the timeout to "-1". You can switch back to "run" mode with sending a command to your queue, you can send it from an parallel runnning event structure.

 

Hope it helps.

Mike

Message 2 of 3
(3,284 Views)
Or, another option could be to put the button in the pause case so that when the value of the button changes you can go back to the run state. In this case you should put a wait timer in the pause case.
Vince M
Applications Engineer
0 Kudos
Message 3 of 3
(3,243 Views)