ni.com is currently undergoing scheduled maintenance.

Some services may be unavailable at this time. Please contact us for help or try again later.

Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

problem with fitting a graph

I am developping a program where I need to fit my graphs with some fitting functions, both polynomial, gauss, and non-linear (self-definition of the fitting function).
I use VB.net and measurement studio, and I don't manage to fit a graph (plotXvsY: nor AxCWGraph, nor ScatterGrpah. I tried

CurveFit.PolynomialFit(array1, array2, 2, 0) 'for a polynom of degree2

but nothing happens!!

I tried this too:

AxCWGraph1.PlotY(CurveFit.PolynomialFit(array1, array2, 2, 0))
but there is nothing too....


In other words: how using facilities for fitting a graph??

Thanks a lot for help, I have read a lot of examples, tried a lot of things, and I don't find solution 😞
0 Kudos
Message 1 of 4
(4,123 Views)
There is a curve fitting example under "National Instruments\MeasurementStudioVS2003\DotNET\Examples\Analysis\CurveFitting\" folder. Hope it can help you out.
0 Kudos
Message 2 of 4
(4,104 Views)
Thanks for your answer. But there is no example "CurveFitting" but only PeakDetector, BasicSignalGeneration, CompositeSignalGeneration, Filtering and Windowing.
0 Kudos
Message 3 of 4
(4,090 Views)
Are you using MStudio7.1? I attached the example here anyway.
0 Kudos
Message 4 of 4
(4,080 Views)