02-04-2007 10:40 AM
02-04-2007 11:17 AM
02-04-2007 12:10 PM
02-04-2007 03:20 PM
The polynomial fit also gives you the coefficients in another output, check the online help. You can use these coefficients to calculate the fitted curve with different, or more x-values as needed using polynomial evaluation. Same for the first derivative (slope).
For the cursor position, simply create a property node linked to the xy graph, set it to read mode, and select property cursor.postionX.
The attached example (LabVIEW 7.1) does a polynomial fit, shows the fitted curve and it's first derivative for 128 points, and displays the slope wherever you place the cursor. Simply modify for your exact requirements. 🙂
(It would need error handling, e.g. to detect if the number of points is large enough for the desired polynomial order, for example)