LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measure passing time between to rising edge in analog inputs

Solved!
Go to solution

Hello guys, I need a little help!

I work with a National Instruments Data Acquisition Device and I use the digital multi meter (DMM) part of the device with two capacitive sensor ( I use this part of the device because i work with industrial voltage). They are come into the same input.
I use Mydaq Assist to visualize when the sensors get sign and I put a Waveform Chart and a Led to see it works.
I would like to measure the passing time in seconds between two rising edge and i need some help to solve this problem.

0 Kudos
Message 1 of 2
(2,180 Views)
Solution
Accepted by topic author GregTaylor

Hi Greg,

 

store the current timestamp with each rising edge of your pulse.

Subtract previously stored timestamp from current time to get the delay between the pulses…

 

Hint:

- setup the DAQmx task to use a known sample rate and read more than just one sample per DAQmxRead call

- there are functions to determine peaks and their distance in the signal processing function palette…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 2
(2,125 Views)