ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Waveform Chart stop/start on Key Command

Solved!
Go to solution

Hey all,

 

I have a VI with a waveform chart and I want to be able to do a couple of things with it.  Currently I have the chart to start when I press the "O" key.  But this is where I get stuck.  I then need the graph to stop (pause) on a key stroke without losing the data.  I also need a keystroke set up to reset the graph to a blank screen.  Any help would be great.

 

See attached VI.

0 Kudos
Message 1 of 9
(4,390 Views)

Here you go.

Never add a function with an indeterminate length of completion in your UI loop.

0 Kudos
Message 2 of 9
(4,373 Views)

Thanks for the post and updated VI. I see that you have the clear history as the outcome from pressing "23" which i do need need!

 

Additionally, How can I program another key to just pause the graph, without clearing the data.  I want to be able to run the graph as long as the user wants and then extract the data.

0 Kudos
Message 3 of 9
(4,370 Views)

Currently if you press any Key besides the O or the I key it will pause. Do you need it to be a specific Key?

0 Kudos
Message 4 of 9
(4,366 Views)

Yes, I would like it to be a specific key if possible.

0 Kudos
Message 5 of 9
(4,364 Views)
Solution
Accepted by topic author Marshman

You answered my initial question fully so I will give you the solution.

 

Furthermore, I want to implement several of these in a tab control - See VI.  It doesn't seem to work. Could you help with that?

0 Kudos
Message 7 of 9
(4,355 Views)

Beautiful!! Thanks!

0 Kudos
Message 9 of 9
(4,340 Views)