LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to count time between two pulses

Hello everyone,

 

I want to count time between two boolean pulses?  Can anyone give me an advice? Thank you in advance!

0 Kudos
Message 1 of 4
(3,206 Views)

Hi sda,

 

you remember the timestamp of the first pulse, then get the timestamp of the second pulse and then you subtract one from the other…

Best regards,
GerdW


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

I suspect you want to measure the time between physical events which will present themselves as electrical signals connected to a DAQ card.  You dont say if you are using DAQ hardware, but if you are then you may need to configure a counter on the DAQ, if one is available.  You need to give us more information incase my psychic powers are failing me. Looking at timestamps is certainly the easiest and most obvious choice but depending on the resolution and absolute accuracy you need it may be sub-optimal.

 

0 Kudos
Message 3 of 4
(3,159 Views)

Hello Michael78,

 

You've right. I have a DAQ board and i want to acquire torque and angle (from a torque transducer). I already done that, but sometimes it doesn't work properly. To acquire this, i count sign changing of the torque to acquire exactly one period (3 sign changing). Torque have a noise, and when passes through zero, count more than 3 sign changing at a time, and this stop my acquisition (figure 2). I want to set a time between 2 counting sign . I tried something with tick count...but i made something wrong . I hope you understand me....

Download All
0 Kudos
Message 4 of 4
(3,150 Views)