LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

computing offset (with VI)

Hallo,

in the attached VI you see two graphs. The red one must be subtracted from the white one. The problem is the offset. How can LabVIEW compute it? I already tried Cross Correlation ut with no success.

As a hint, I computed the offset by myself. The resulting graphs I also added to the VI.

Arno
0 Kudos
Message 1 of 3
(2,602 Views)
Well it works.

You have to remove the size of the input (peak is shifted). I got the answer of 469 for the offset.

I computed the cross correlation,
then find the maximum
then compute the distance between this point and the size of the data
which results in the offset.

In your case, I would run the computation on the second half of the data to calculate the offset (when the shapes and amplitudes of the two signals are similar), and then use this result to offset the whole array.
Doc-Doc
http://www.machinevision.ch
http://visionindustrielle.ch
Please take time to rate this answer
0 Kudos
Message 2 of 3
(2,602 Views)
Hallo Doc-Doc,

thanks for helping. Can you (or anyone else) please "transform" your VI so that I can open it with LabVIEW 6.1?

Thanks, Arno
0 Kudos
Message 3 of 3
(2,602 Views)