LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Plotting User Event on a Chart

Solved!
Go to solution

I have LV2010 and trying to plot a user event on a streaming data. When the user press Post Event, the same data gets plotted as X (using plot-style) in red. See attached VI.

 

The chart has two plots- Num and Event. The Num plot is a 1 second continuous plot of random numbers. The second plot is an event plot with (X-style line plot) and only plotted when Post event is pressed. The X-axis of the waveform is set for minutes.

 

The problem is, when Post Event is pressed, all the data points are highlighted with X-style plot and I want just one data point at that time to highlighted with X-style plot.

 

Please help and Thanks in advance.

 

-ipc

0 Kudos
Message 1 of 2
(2,006 Views)
Solution
Accepted by topic author ipc

Attached is a version that does what I think you want. The event waveform has a point added every iteration, but the value is NaN (not a number) unless the button is pressed. Those points with NaN value will not show on the plot, only the ones with values added when  the button was pressed.

 

Richard

Message 2 of 2
(1,996 Views)