Hi Todd,
I'm not exactly sure how you're handling the data, but it looks like you're maintaining and constantly building upon an multiple arrays that contain line end-point coordinates. In theory, you don't want this array to keep growing forever, so at some point there should be a theoretical limit to this array. With your current implementation, there is no limit (except for disk space) to the size of this array because you can always add another group of end-points to the array. A couple of ideas:
- Maybe you could keep track of individual points on the plot (instead of end-points of a line), and check for (and flush) duplicate points. I realize this might have the adverse effect in smaller plots (since you have to keep track of every point vs. just a few lines), however, there is an obvious limit to the size of the array (if you discard duplicate points).
- Maybe you could downsample the amount of coordinates that you receive (only take every other coordinate or something similar). Something like this might be your best bet.
Good luck with your development,
Travis H.
LabVIEW R&D
National Instruments