LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to calculate rising edge timing between digital waveforms

Hi,

 

I have 3 digital waveform input signals, one of which controls the other two. Is there a way to measure the timing between the rising edges and calculate the differences between them.

 

Thank you.

0 Kudos
Message 1 of 3
(1,619 Views)

Yeah, first you have to identify the index of the samples that contain the rising edge, you can do this by comparing the voltage against a threshold (if analog value) or look for two consecutive samples that are low and a high. 

 

Once you've the rising edge indices of the required signals, you can subtract the indices to find out the timing between the rising edges, now you can convert this timing in samples into seconds by multiplying with sampling rate at which the digital/analog signal was captured.

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
0 Kudos
Message 2 of 3
(1,611 Views)

Hi Santosh,

 

Can you give me an example of how that would be accomplished? I attached what I have so far. I thought using the "Get Waveform Time Array.vi" would do the trick but it expects a compressed signal.

 

Thanks. 

0 Kudos
Message 3 of 3
(1,578 Views)