取消
显示结果 
搜索替代 
您的意思是: 

Measure time between two cursors

已解决!
转到解答

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 项奖励
1 条消息(共 5 条)
1,278 次查看

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 项奖励
2 条消息(共 5 条)
1,274 次查看

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

0 项奖励
3 条消息(共 5 条)
1,267 次查看
解答
接受人 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
4 条消息(共 5 条)
1,250 次查看

It worked.

Thanks!

0 项奖励
5 条消息(共 5 条)
1,244 次查看