LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to interpolate one signal to fit sample rate of another signal


ACiDuser wrote:

Why after linear interpolation, when I compare signals -  I get continuously increasing deviation between two signals ? 😞


Your VI does not have any data. Can you attach a more complete VI that contains real data and shows the deviation?

0 Kudos
Message 11 of 13
(1,263 Views)
It seems that I achived success. Now there is constant deviation. Example attached bellow.
0 Kudos
Message 12 of 13
(1,257 Views)

 

 

I have created a VI so now everyone can use it.

 

The "Signal 1" is a Control signal with greater sampling rate then "Signal 2" has. "Signal 2" is a original signal which you want to be upsampled by linear interpolation. For example Signal-1 has 1000 samples, and Signal-2 waveform has only 100 samples. To be able to compare these two signals - you need to have both signals with equal sampling rate. By interpolating Signal-2 waveform at exactly the same timestampts that has Signal-1 - you are able to compare both signals, by dividing them. The output "Deviation Signal" - shows Deviation signal (Difference between two Signals). This difference becomes because Signal-2 has lower sampling rate. Deviation signal can be used to calculate error.

 

Note: You should wire equal timing signals. That means both signals should have the same duration.

 

 

 Please report if something should be improved.

Message 13 of 13
(1,254 Views)