11-24-2008 10:28 PM
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.
11-25-2008 01:19 AM
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
11-25-2008 06:36 PM