05-23-2009 05:12 PM
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?
05-23-2009 10:01 PM
05-23-2009 10:42 PM
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.