LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling vi from formula node

Ken,

Have a look at my new example (and related discussion higher up in the same thread). You could probably modify it so it works with your model.

Message Edited by altenbach on 04-08-2005 06:02 PM

Message 21 of 26
(1,230 Views)

@Ken Pietrzak wrote:
I've attached the error function that I'm trying to minimize.



Ken,
Do you have the formula for the functions g and h?
x'k = g(xk, yk, K ,xc, yc)
y'k = h(xk, yk, K ,xc, yc)
0 Kudos
Message 22 of 26
(1,218 Views)
Thanks guys. I really appreciate the help. I've attached a more thurough definition of my error function as well as a VI that executes it. The params array input in the error function contains the initial search parameters. K1 and K2 should be quite small - 0.1 at the most and I expect them to be much smaller. Xc and Yc should vary by less than a few hundred for the initial params. The theta's and p's should not change much at all.

Ken
0 Kudos
Message 23 of 26
(1,205 Views)
Here's the error function:
0 Kudos
Message 24 of 26
(1,205 Views)
I took altenbach's advice and modified NI's Lef-Marq VI to solve for z = F(x,y) where z always equals 0. I removed the squaring and summations and instead let Lev-Marq use the chi-square approach to solve for the params. I find that it converges to expected values quite quickly. Thanks again for your help.
0 Kudos
Message 25 of 26
(1,189 Views)
Ken,

It is great to hear that it works!
Sorry I haven't had time to look into this myself, but it seems you're all set. 🙂

Happy wiring...
0 Kudos
Message 26 of 26
(1,181 Views)