03-06-2008 02:35 PM
Maryam hosseini wrote:
I was wondering to see how I can wire f(X) to the fitting function.
03-06-2008 03:27 PM
what you have done makes sense,
but when I want to do exactly what you have done still I have problem, I am not able to wire the VI static refrence to the fitting funtion. ![]()
03-06-2008 03:41 PM
03-07-2008 05:43 AM
Yes I did, still does not work,
I have attached the code.
03-07-2008 06:34 AM
Try to use the attached VI instead. It eventually worked fine on my computer. Right-click the reference and browse to this VI.
KostasB
NI UK
03-07-2008 10:30 AM
Maryam hosseini wrote: Yes I did, still does not work,
03-07-2008 11:01 AM
03-07-2008 12:40 PM
03-09-2008 12:36 PM
I am trying to run this VI, but It gives me error, everything sounds correct I think, Could you have a look at it?
03-09-2008 01:13 PM
You are creating a race condition because you try to fit before you calculate the estimated initial parameters. The calculation of the initial extimates MUST be done before you fit. Right now, it uses an empty array for the estimates, because that's how the feedback node is initialized.
A good way to see this is to run your code in execution highlighting mode. Try it!
Here's how to do it. 🙂