05-12-2011 04:37 PM - edited 05-12-2011 04:40 PM
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
Solved! Go to Solution.
05-12-2011 05:40 PM - edited 05-12-2011 05:41 PM
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