LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Measure time between two cursors

Solved!
Go to solution

Hi,

I'd like to measure the time between two cursors on my graph.

I've managed to get the seconds to be accurate, but there is an extra hour added, and the date is set to 01/01/1904.

How can I correct this?

ss delta cursors front view.png

ss delta cursors diagram.png

0 Kudos
Message 1 of 5
(886 Views)

Hi Alex,

 

why do you think it's a good idea to convert a time difference to an absolute timestamp???

 

Just display the time difference in a numeric indicator…

Best regards,
GerdW


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

But the numeric indicator doesn't return a time but a numeric value.

0 Kudos
Message 3 of 5
(875 Views)
Solution
Accepted by topic author Alexb91

Hi Alex,

 


@Alexb91 wrote:

But the numeric indicator doesn't return a time but a numeric value.


A "time difference" is a number: it's the (fractional) number of seconds between two timestamps.

 

Did you know you can change the display format for numeric indicators? (Basic LabVIEW knowledge…)

They even allow to show time values in their format properties dialog. As you don't want to show an absolute timestamp I recommend to try the relative time format!

 

Example:

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 4 of 5
(858 Views)

It worked.

Thanks!

0 Kudos
Message 5 of 5
(852 Views)