ni.com is currently undergoing scheduled maintenance.

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

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LV Example for performing Excel Solver function

Excel Solver can find the coefficients a, b, and c in equation y=a+b*(x^c) easily by given x(i) and y(i).
I wonder if the LV 7.1 can do the similar thing. Is there an example available? Thanks!
0 Kudos
Message 1 of 6
(3,725 Views)
You can use the Non-linear Lev-Mar fit.vi (in the Analyze>Mathematics>Curve fitting sub-palette).
You have a series of shipping examples in National Instruments\LabVIEW x.x\examples\analysis\regressn.llb
Read also this discussion


CC
Chilly Charly    (aka CC)
0 Kudos
Message 2 of 6
(3,712 Views)
I have looked and tried the examples in National Instruments\LabVIEW 7.1\examples\analysis\regressn.llb. They are not well documented nor fitted my equation. I would like to see if NI or someone can show me how to call the functions and get the soulution. Thanks!




@a3j wrote:
Excel Solver can find the coefficients a, b, and c in equation y=a+b*(x^c) easily by given x(i) and y(i).
I wonder if the LV 7.1 can do the similar thing. Is there an example available? Thanks!


0 Kudos
Message 3 of 6
(3,689 Views)
Hello A3J,


The curve fitting express VI available from Functions->Signal Analysis should be capable of giving you the coefficients you desire.

Please let me know if you have any questions.

Regards,

Matt F
0 Kudos
Message 4 of 6
(3,658 Views)
May be you could try a little bit harder..:)
See the attached vi.

CC
Chilly Charly    (aka CC)
Message 5 of 6
(3,656 Views)
Hi chilly charly,

Your example works very well. Thank you very much!
0 Kudos
Message 6 of 6
(3,621 Views)