07-01-2016 02:28 PM
In creating a 2D XY graph, I've discovered that Plot Interpolation 4 did not connect some data points. Plot Interpolations 0, 1, 2, 3 and 5 work correctly.
This behavior is not affected by Point Style, Line Style or Line Width.
This is what I see when I use Plot Interpolation 4:
Any ideas? I've attached the LV 2015 vi that shows the issue.
Thanks for any help!
Brian
07-01-2016 03:53 PM
I played around with your VI for a bit, removing the express VI's and signal wires, generating a different X and Y values, placing a new X-Y chart. All my changes still yielded the same artifact.
Very strange, I don't have a solution for you, however I will point out that its probably not a coincidence that the artifact appears on the 400th sample.
I also attached my simplified version of your VI which shows the same behavior.
07-01-2016 04:01 PM
I took a look at your VI and was surprised to see that Plot Interpolation 5 had the same problem at the same point.
I went back to my VI and discovered the problem was there as well. I guess I just remembered incorrectly when I posted.
Thanks for doing that simple test. I'm happy to know I wasn't making a simple mistake!
Brian
07-01-2016 04:29 PM
07-01-2016 04:34 PM
No, unfortunately it doesn't. Thanks for the suggestion, however!
Brian
07-01-2016 04:38 PM
07-01-2016 04:45 PM
Well, the VI posted by SigRob is actually better than mine to show the problem.
He simply uses a loop with N=1000 and x = y = DBL (i), creating a straight line. The points for i=399 and i=400 are not connected.
Brian
07-02-2016 11:16 AM - edited 07-02-2016 01:12 PM
@mikeporter wrote:
What are the data point values?
I looked at the values in detail yesterday and while the two arrays have a NaN at the very end, these have nothing to do with the bug observed here. (even if we remove the NaN, the problem persists). I guess it is just a shortcoming in the implementation, maybe it does the interpolation in sections and fails to patch in-between. I have never found any reason to use any of these interpolations and I don't think they are very commonly used in general. It also has nothing to do with the huge difference between the x and y value ranges, e.g. if we scale X to bring them into a more normal range, the problem still shows.
These interpolations are typically used with fills, and the fill actually does not show a gap, so the problem is really minimal.
Note that in this case, the x values are equally spaced (except for a small glitch near index 320 where the value is 3600010000 instead of the expected 3600000000), so we can probably substitute a plain waveform graph. If we do that, the problem no longer appears. the problem is isolated to the xy graph. (And yes, I think it is a bug!)
See attached comparison. The problem occurs for interpolations 4 and 5.
07-05-2016 10:32 AM
Thanks for taking a look at this, everyone! I'm glad it wasn't something I was doing (or not).
Brian