LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

PlotXY and 46566 data points

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:

46566.png

10000.png

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.

0 Kudos
Message 1 of 3
(3,073 Views)

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.

0 Kudos
Message 2 of 3
(3,059 Views)

Thank you for pointing that out and posting the code. I also verified the incorrect behavior. A corrective action request has been filed.

Jacob R. | Applications Engineer | National Instruments

0 Kudos
Message 3 of 3
(3,040 Views)