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.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get a timer in labview?

Hi 

 

I want to measure time of an event which takes place between 'switching on' of two Boolean indicators.

Can anyone please tell me how can I do this?

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

Hi Rkale,

 

there is the Time functions palette with a handful of functions dedicated to timing and timemeasurement...

Best regards,
GerdW


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

Try something like this

 

[Edit] Oops. Here is the image.

 

Example_VI_BD.png

=====================
LabVIEW 2012


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

What I posted above is the typical way of timing how long that a piece of code takes to execute. After reading your question again this will probably not help much.

 

What you need is to record the time that each button was pressed in an event structure using a shift register. You can then take the difference.

=====================
LabVIEW 2012


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