LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

camparing 2 waveforms using cross corelation

Hello everyone!

 

In my application, I am acquiring current waveform of a DC motor. My hardware consist of a current to voltage converter which then I am giving it to my NI USB6009 card. I am acquiring 40k samples at rate of 10k.

 

These waveform are then stored in excel file.

 

I am currently comparing the acquired data with a previoulsy stored master file(vi attached). The nature of waveform is usually similar to a sinusoid.

 

In my vi I time shift the waveform and compare it with the master. If each datapoint is within the set tolenace range, the waveform is treated as ok.

But my problem is, even if there is a fault in my motor(which can be visibly identified by the nature of waveform), but since all the data points are inside the set limits, it still says it as OK.

 

So I thought of using cross-corelation to determine the nature of waveform. But I am not able to do it sucessfully.

 

Currently for testing purpose I have both in my code.

 

 

I am attaching the vi as well as some sample waveform files.

Note: HOOK MISS, WIRE CUT are the manufacturing faults which. Faulty waveforms should be identified. The nature of fault is not important. 

 

Can someone please help? I would really appreciate your help!

0 Kudos
Message 1 of 1
(2,448 Views)