06-12-2020 05:09 AM
Hello, I am using two zero detector circuit in my design (to calculate the phase shift between two waveforms). The output of the zero detectors are connected to the logic analyzer of my VirtualBench. I already used the analog channels of the MSO to measure the phase shift which works perfectly. But since there are only two analog channels (which i will need for other meausrements) my supervisor suggested to use the logic analyzer of the virtual bench to measure the phase shift between the two waveforms. I am using the following vi to get the measurement from the VirtualBench MSO. I get the digital waveform, Can anybody suggest how i can measure the time difference between the output waveform of the two zero detectors.
So I would like to measure the time difference, something like below:
06-12-2020 02:30 PM
Hi zakaria,
you receive a digital waveform: the samples are evenly spaced in time, with a step of dt for each sample.
All you need to do is to let your "zero detector" determine the sample index for each signal, then subtract both indices and multiply by dt to get the time shift between both signals…
(Unfortunately your VI does not contain any useful data in the controls/indicators.)