01-22-2013 07:45 AM
Hello,
I have 4 points for example xi=3.38276, 0.375866
yi=3.37749, 0.281924
by using this points I want to find the value of m and c.
Will you please suggest me some logics to solve this equation by using labview programming.
I tried with one solution but in that case I didn't get correct answer. Here in attachment there is vi by using that I tried to solve my equation but in that case what ever value I got as an answers its not satisfied the equation, means if I replace value of m and c in that eqation then it should be L.H.S = R.H.S, but i didnt get the right solution.
Will you please guide me.
Thank you very much.
Solved! Go to Solution.
01-22-2013 08:01 AM
Why do you think the results are incorrect? I put your numbers into you code and ploted the result on an XY Graph, I then overlayed that with more than 20 values with an x value ranging from 0.6 to 3.2 and use the factors calculated in your code to generate the Y values. The two overlay almost precisely...
Mike...
BTW: There is a linear fit VI built into LV.
01-22-2013 08:07 AM
Yes, I tried it too. Your code looks correct. But, as Mike said, LV has a built in function that will save you some time.
01-22-2013 08:11 AM - edited 01-22-2013 08:13 AM
i think problem is solved....if i do by given attachment then i got correct answer...
01-22-2013 08:13 AM
What happened?
Mike...
01-22-2013 08:15 AM
thank you very much for quick suggestion....
02-06-2013 07:47 AM
Hello,
I am facing some problem regarding to write the value of C on my modbus Register.
Can it possible to set C Value at 0 and according to that I have value of m ,so its good for the program in order to write 0 Value in modbus register.
Will you please let me know if any suggestion is there.
Thank you very much in advance.