NI TestStand

cancel
Showing results for 
Search instead for 
Did you mean: 

measure time between 2 signals

Solved!
Go to solution

Hello, there:

      i want to use sequence in attachment to check the relation ship of input voltage(Vi)&output current(Io).

I build 2 arraies of Vi and Io with For loop in same index.

how can i get the delay time between Vi and Io signal?

 

thanks!

0 Kudos
Message 1 of 4
(4,217 Views)

Hi,

 

You can write a DLL or a simple test sequence to do it.

Assume a dll

finddelay(samplingrate,voltagearray,currentarray)

{

Iterate (read values from the start of array) the voltage array until you see the spike - 0 to 1 transition

start a counter at this point

Continue iteration but with the current array until you see the spike.

stop the counter at this point.

 

counter value x sampling rate = delay.

 

}

 

Hope this helps.

 

Ravi

0 Kudos
Message 2 of 4
(4,204 Views)

Thanks reply, SUNRS.

would you also tell me the simple sequence method? because i don't have tools to write dll on my computer........

0 Kudos
Message 3 of 4
(4,179 Views)
Solution
Accepted by topic author johnnnywang

Please check the attached sequence.

0 Kudos
Message 4 of 4
(4,171 Views)