04-19-2017 09:33 AM
I am acquiring data from a NI USB-6002 DAQ.
I want to convert a voltage value to a displacement value.
In Microsoft Excel I made a table. I recorded voltage values and the corresponding displacement values.
I plotted the data and the best fitting line was a fourth order polynomial function which looked like this; Y = A + BX + CX^2 + DX^3 + EX^4
*A,B,C,D, and E are all constants which I have values for
*Y is the displacement value which I would like to ultimately receive
*X is the voltage value coming from the DAQ.
I am having trouble creating the block diagram for the polynomial function I would like to implement. I tried using the math functions but I'm not sure how to add a power to the data coming from the DAQ.
Any feedback would be highly appreciated.
Thank you.
Solved! Go to Solution.
04-19-2017 09:46 AM - edited 04-19-2017 09:48 AM
You could use the "Polynomial Evaluation" function to apply your polynomial coefficients on your X data…
(Otherwise use those simple numeric functions like Add and Multiply!)