10-25-2012 03:37 PM
Hi,
I'm having a strange issue with PlotXY(...) when I tell it to plot exactly 46566 data points. What seems to happen is that I one or more extra data points on the plot, which if I'm plotting as a line plot shows up as a rather obvious artifact. It moves around which suggests that it's grabbing some uninitialized value from somewhere. I've attached a sample program that shows the issue. It uses PlotXY to plot a line from (1.2) to (2.3) with the specified number of data points (the program uses the Ramp(...) function to generate the arrays which appears to work correctly). Here's some screenshots at 46566 points and 10000 points:
Any ideas on what's going on here? Are there other values I may have to worry about (so far, I only see the problem at exactly 46566 points)?. This is with CVI 2012 on Windows 7, and it is seen in a release build as well as my debugger. Thanks.
10-26-2012 01:43 AM
hi,
it seems to me, that this is a bug in Plot function. I have the same results with CVI2012 and CVI2010.1 on win7 32bit.
maybe someone from NI check it.
10-29-2012 09:01 AM
Thank you for pointing that out and posting the code. I also verified the incorrect behavior. A corrective action request has been filed.