ni.com is currently undergoing scheduled maintenance.
Some services may be unavailable at this time. Please contact us for help or try again later.
10-15-2018 08:36 AM
Hi guys
Lets say we have an array of 3 waveforms wired to a waveform graph indicator. This will give us 3 separate plots on our waveform graph, as shown in the attached file.
My question is: how can I update or change the values of an individual plot without the need to update all of them? Basically, to specify a plot index and the new values, so that my indicator replots only plot number 3 for example?
The reason why I don't want to replot all of them is because some of the waveforms are 1 million data points long, times that by 3- I need to replot 3 million points instead of only 1 million
Solved! Go to Solution.
10-15-2018 09:06 AM - edited 10-15-2018 09:07 AM
Hi datatech,
how can I update or change the values of an individual plot without the need to update all of them?
Update that single plot, then BuildArray with the other unchanged plots…
The reason why I don't want to replot all of them is because some of the waveforms are 1 million data points long, times that by 3- I need to replot 3 million points instead of only 1 million
Decimate the amount of data to a reasonable amount.
It doesn't make sense to plot a million points in a graph of ~1000pixels width…
10-15-2018 09:44 AM
That actually makes sense. I can create a function that plots enough points to approximate my dataset without the need to plot all of them.