Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Can counter measure pulse width difference between two signals

I am interested in determining the high pulse width time that two signals have when they are in various phases between eachother.
0 Kudos
Message 1 of 3
(3,563 Views)
Why don't you try one of the pulse width examples. I don't know what ADE you are using, but you can search for examples (http://www.ni.com/devzone/dev_exchange/ex_search.htm) with the key words "+pulse +width" and find several examples in different languages. This will measure the pulse width of one signal, but you can program most of the counters to do multiple tasks at the same time. Just copy the code twice and change the counter number to program counter 2 as well. If you want the ORed pulse width time, I would recommend adding a OR gate to your circuit and then feeding that into a counter.

I hope this helps.

Joshua
0 Kudos
Message 2 of 3
(3,563 Views)
If you are using a NI-TIO based board (6601/02/08) you can use two signal edge separation which allows you to measure the time difference between two different signals. The edge for each signal is configurable, so you should be able to measure the various phases. There is LabVIEW example that ships with NI-DAQ
(".\Program Files\National Instruments\LabVIEW\examples\daq\counter\ni-tio.llb\Two Edge Separation Measurement (NI-TIO).vi")
0 Kudos
Message 3 of 3
(3,563 Views)