-----------------Quick translation:--------------
I have two arrays with measurement data and I need to subtract the two. Unfortunately, one of the two data sets contains a time-delay and must be aligned with the other array before processing.
Example f1(x)=sin(x), f2(x)=sin(x+a), where a is not known. Desired result=(f1(x)-f2(x-a)).
Is there a LabVIEW function that allows determination of "a".
--------end of translated question----------------
Is "a" an integer or can it contain fractional units?
In very general terms, it is not possible to determine "a" (e.g. if you are dealing with exponential functions), but it seems you are dealing with periodic functions and the shift is less than one cycle. Is this correct?
Can you tell us a bit more about y
our data? Is it just a phase shift, or do you also need to adjust the amplitude before subtracting.
Couldn't you just fourier transform the two and use the phase difference of the main frequency component to determine the delay?