Showing results for 
Search instead for 
Did you mean: 

how I can calculte the time between two edges of square wave

I want to measure the time between to edges of the 6 square waves simultaneously. i.e. using the time function to calculate the T-on time of the waves and time period of the wave.
0 Kudos
Message 1 of 2
You didn't specify how you are obtaining you square waves, but if you are using Data Acquisition card from NI you can use the built in counters to determine the frequency/Period of your square waves. The following link has several examples of how to do this.

If you already have the data you could use the Waveform Basic Trigger Detection VI to determine where the edges of your square wave occur and then compute the delta t from their places in the waveform array.
0 Kudos
Message 2 of 2