From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

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,213 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,200 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,175 Views)
Solution
Accepted by johnnnywang

Please check the attached sequence.

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