DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Chart using Smooth Curve option draws with bogus curve when only 2 points

Solved!
Go to solution

Hi,

  I am using VBS to create reports from raw data.  Sometimes the plots in these reports have hundreds or thousands of data points, but sometimes they only have 1 or 2.  I have the "Smooth Curve" option checked in these charts to show the lines as smooth curves rather than jagged lines.  However, when there are only 2 points, the smooth curve function makes up a curve to connect the two points rather than draw a straight line between them.  It arbitrarily assigns a concave or convex curve between the points.

 

Does anybody else know of this or have a way to correct DIAdem's assumption that the line should be curved?  I suppose that I could put a snippet of code in that checks if there are less than 2 data points in the set and if so, remove the Smooth Curve feature, but I don't think that should be necessary. 

 

Thanks in advance!

0 Kudos
Message 1 of 2
(5,189 Views)
Solution
Accepted by topic author GT_Mark

Hi GT_Mark,

 

That sounds like a valid complaint, since no curvature can be inferred from 2 data points.  Unfortunately, I know of no way to configure or improve the "Smooth Curve" option in DIAdem, so I'm going to recommend you implement the software switch you suggested to turn off the "Smooth Curve" display below a certain threshold of data points being plotted.

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 2 of 2
(5,173 Views)