Required hardware |
only on Orion cards |
Required software |
Any version |
Setup sample rate |
At least 1 kHz |
Two pulse edge separation is a special mode with Orion counters. It measures the time between the raising edges of two signals. This is useful for the measurement of the time between two events with very high precision. A typical application for example, is measuring the velocity of an object passing by two sensors.
We need to connect two signals - one as a start and the second one as a stop signal. The start signal in this example is connected to AUX_CNT0 and the stop signal is connected to GATE0. The start signal is also wired to DI0 and the stop signal is wired to DI1 just to see how it works clearly.
To setup this mode in DEWESoft, switch on one counter and go to the Channel setup screen. We select Two pulse edge separation as the Timing mode, as well as Aux_B0_CNT0 as the Signal input (start) and Gate_B0_CNT0 as the Signal stop
. Both of the signals are inv(erted) since the values are normally high when the buttons are not pressed with this wiring. In this case the real trigger condition will be the falling edge of the input signal. We should select to repeat the last value when no new value is available (like with a period measurement)
.
Let's now take a measurement. To start, we press a start button and then a stop button. From the cursor readout we get 1.738 seconds
, the counter value is a precise measurement and it reads out 1733.838 milliseconds
.
Next, we can use this value for example for speed measurements, if we are triggering (for example) from two light sensors. If we know an exact distance between them, the speed would be v = s / t, where s is a constant and t is the result of the edge separation measurement. We would do this in the math channel.