mikeloria

Interpolation by Value, not Time

Discussion created by mikeloria on Mar 5, 2012
Latest reply on Mar 5, 2012 by Ahmad Fattahi

I have a need from oledb provider and was wondering if it is possible. I realize that with oledb provider, I can iterpolate values based on an equal distribution of time. An example is, I can get the interpolated value for each 10 seconds or minutes:

 

9:00

 

9:01

 

9:02

 

 

 

but my need is to get the times at an equally distributed value. I will then gets interpolated values off of the times. I have a footage that is not equally distributed:

 

0

 

3.4

 

7.2

 

10.1

 

14.4

 

...

 

...

 

I would like to make this into

 

0

 

1

 

2

 

3

 

4

 

5

 

6

 

7

 

8

 

and then find interpolated values at the times that the footage was equal to the distribution above.

 

So far, All I have found is that I need to do each value one at a time (a separate call for each value) and I need to write these equally distributed values back to PI in a different tag to use them.

 

Is there a better way of doing this?

 

 

 

Thank you in advance for your help in this matter.

Outcomes