08-05-2018 12:14 PM
Hi everyone,
I need to find the x coordinate of all the first crossing points between a constant (Y coordinate of a cursor) and a given set of plots considering that:
i found some solutions, posted by "Altenbach", to similar problems, and he used shift register and threshold 1D array, but none of them worked for me.
Here's a typical plot:
Here's a typical situation: i need to find the first crossing points between the Y value of the cursor in the previuos image and the plots in the image below.
Thanks in advance.
Alessio Aurilia,
Electrical Engineer at Roma Tre University
Solved! Go to Solution.
08-05-2018 02:07 PM - edited 08-05-2018 02:09 PM
@GreatPepo wrote:
i found some solutions, posted by "Altenbach", to similar problems, and he used shift register and threshold 1D array, but none of them worked for me.
08-06-2018 07:53 AM
Hi Christian, thanks for your reply
You guessed correctly: i need to align (overlap) traces so i tried to use cross-correlation tool as you suggested. The problem is that i keep getting a triangular waveform as a result of cross-correlation, no matter which waveforms i correlate. On top of that i don't understand how to use the peak of the cross-correlation to get the time shift 😞
Here are two waveforms
Here is the cross-correlation result
I also attached a simplified VI + Typical Data
Thanks in advance.
Alessio Aurilia,
Electrical Engineer at Roma Tre University
08-06-2018 08:40 AM - edited 08-06-2018 08:41 AM
This shape of the cross-correlation means that you should apply a threshold and substract the background value. The fact that it's peak is for the value of the size of your waveform and it's triangular shape, means that what you can gain from 'synchronizing' the 2 waveform is negligeable before the loss from the background as you shift your 2 waveform one from another (The background is so high in front of your signal that the correlation see it like it's only a background, so you have the autocorrelation of a rectangular function of the size of your waveform)