03-10-2008 12:08 PM
Solved! Go to Solution.
03-10-2008 12:42 PM
03-20-2008 04:40 AM
cheers, that worked like a dream!
LMS17
10-09-2008 05:32 PM
Hi
I have the same problem. Could you give me an example how to fit 2-D data?
Thanks
Cindy
10-09-2008 06:39 PM
10-09-2008 09:17 PM
Altenbach:
I browsed through the thread and I cannot find the example. I have two vectos of independent variables X, Y, a object vector Z to fit, and also a model function which includes sin and cos functions. So I guess I will need to use a 3D Levenberg Marquardt algorithm.
Do you have an example like that?
Thanks
Cindy
10-10-2008 11:02 AM
10-10-2008 03:37 PM
altenbach :
I have 7.1.
Thanks for the help
Cindy
10-10-2008 04:31 PM
akang wrote:I have 7.1.
Ouch!!!!
The NI implementation of Levenberg marquardt prior to LabVIEW 8.0 was not very useful. Things would be significantly easier if you had LabVIEW 8.0 or higher.
Very long ago, I wrote a few tools to get around the pre-8.0 limitations, and you can find quite a few examples if you search the forum. Here are two examples that deal with a 2D array of independent data.
http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=82900#M82900
(this one assumes that the xy data forms a grid and that the model VI knows the pattern)
http://forums.ni.com/ni/board/message?board.id=170&view=by_date_ascending&message.id=115758#M115758
(this one accepts the x and y array as a single interlaced 1D array of twice the lenght)
You can probably adapt these to your problem. See how far you get and please ask if anything is not clear.
10-21-2008 01:23 PM
Altenbach:
Thanks for the information, It is very helpful.
Cindy