LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Compare waveforms using CrossCorrelation.vi

Hi,

 

I intend to compare 2 clock frequencies which deliberately vary in frequency value, to ensure they are not correlated, i.e. unable to trigger a scope off one clock to view the other clock.

 

I think that the CrossCorrelation.vi would be useful for this purpose. Having tried a few tests with simple sine wave inputs, I'm unsure of how to interpret the results.

I thought by using identical and dis-similar inputs that a I would be able to derive a test, but am unable to explain the vi output.

 

Does anyone have any experience using cross correlation and where I might get basic explanations on how to interpret the results.

 

Thanks,

 

 

Gary.   

0 Kudos
Message 1 of 3
(6,303 Views)

Hi Gary,

 

Below is a link to an example VI that uses CrossCorrelation.vi to find the time delay between two identical signals.

 

https://decibel.ni.com/content/docs/DOC-12657

 

Both signals are input to the CrossCorrelation.vi. This then outputs an array containing the cross correlation data. Any large peak in this data will indicate a sample delay.

 

If you need some help understanding your own code, feel free to post it up here.

 

Kind regards,

Josh E
Applications Engineer
National Instruments UK & Ireland
0 Kudos
Message 2 of 3
(6,265 Views)

Gary,

 

Perhaps it would be easier to use a Fourier transform or Extract Single Tone Information.vi to check the frequencies.

 

Lynn

0 Kudos
Message 3 of 3
(6,257 Views)