02-10-2010 10:07 PM
Hello community,
I would like to execute the regression program. How to make it work, using the equation generated linking with formula eval node. Then i would have a reference input value and calculate output value in front panel.
Thanks,
Zull miza
UTM
Solved! Go to Solution.
02-10-2010 10:29 PM
02-10-2010 11:22 PM
Hi,
Working out your VI, It has two problems,
1) You have not entered the input and output variables to EVAL formula node.
2) You cannot send the equation directly from polynomial fit vi to eval formula vi as the terminology is not same.
I have attached the vi below, i hope it solves your problem,
reply if some error occurs,
Regards,
Shrek
02-11-2010 12:32 AM
Hello, thanks for the reply. I have test the program and work perfectly. The program need to be re run every time to see the changes of the value.
Let say for example, if i would select value X = 5, at Polynomial Fit of 5 order, i would exactly receive the y value equal to 220, same as
enter data. But the problem now is the value of y is still the same and not changing if i
change X=4, or X=3 and so on. I need to stop and run the program again if i want to get y value when
x value is change to new value. Let say the X value is changing always, assume that x value is
temperature sensor which have an output in voltage, and y value is degree celcius reading. So, this cannot
be work if continuous X reading is taken. Any idea to improves the program?
Thanks,
Zull Miza
UTM
02-11-2010 02:08 AM
Hi,
The main problem for that is the Eval formula node is not running continuously.
Take it outside the case structure as it is implementing only when the input data is changed and for only 1 time.
attached is the vi, for your reference,(it is not optimised as i have used local variable)
work on it.
Regards,
Shrek
02-11-2010 04:26 AM
Hello,
Thanks for the explanation and now i understand more about this technique and also has work on it. It all work perfectly
now and i can manage my VI into proper way. Thanks a lot again shrekt. Have a nice weekend and celebrate Valentine's.
Regards,
Zull Miza
UTM
04-06-2010 02:33 AM
Hello suffyzull,
I am also interested in this topic, unfortunately I cannot open this via since I am using LV 8.5.
Would you like to attach a LV 8.5 version so I can see how this solution is working?
Thanks in advance,
04-10-2010 03:21 AM