08-01-2019 02:02 PM
Hi Friends,
I need to interpolate XY data acquired from a data acquisition device, the interpolate 1D VI just takes the nearest value instead of interpolating it, see the attached code.
The 1D XY data is produced using a square of iteration (Y) and the time (t) at which the Y is obtained. The time interval is 0.2s for data generation and a 50 ms is added for the XY data interpolation. So, the raw data is
(t1, Y1), (t2, Y2), .... (tn, Yn), where Y = i*i, i is the iteration.
The interpolated data should be
(t1+0.05, Y1'), (t2+0.05), Y2'), .... (tn+0.05, Yn'),
Currently, Yi' = Yi, which is not what I expected.
Could someone help with this issue?
Thanks,
Gu
Solved! Go to Solution.
08-01-2019 02:13 PM
Read the help for "interpolate array". Your code makes very little sense.
08-01-2019 02:31 PM
08-01-2019 02:33 PM
08-01-2019 02:46 PM
Using the 2D Interpolation makes this all much easier.
08-01-2019 02:52 PM
How is that 2-D interpolation?
The VI is called "Interpolate 1D.vi".
08-01-2019 02:52 PM - edited 08-01-2019 02:56 PM
@Ben_Manthey wrote:
Using the 2D Interpolation makes this all much easier.
Your VI is using "interpolate 1D" though. 😉
(also, if you look inside, it is using a scary amount of code to do the same, so it is only simpler on the surface 🐵
08-01-2019 04:34 PM
Hi Dr Altenbach,
Thanks a lots.
Gu
08-01-2019 04:38 PM - edited 08-01-2019 05:04 PM
Hi Ben,
Thank you for your response. My LV is 2015 can not open the vi, Could I trouble you to save your VI to 2014 or 2015 version and upload it again?
Regards,
Gu
08-01-2019 05:00 PM
@edmonton wrote:
My LV is 2005 can not open the vi,
Actually, you have LabVIEW 2015. (There is no LabVIEW 2005)