LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get Date Time in seconds, replacing it from LV6.0 and LV7.0

I have got some sw in LV6.0 and I want to change it into LV7.0. The problem is the function " Get Date/ Time In Seconds". I don't know what is the data format of output of function "Get Date/ Time In Seconds" after I convert its output with the function To Double Precision Float. The LV7.0 help says:

"Returns a time stamp of the current time, measured as the number of complete seconds that have elapsed since 12:00 a.m., January 1, 1904, Universal time. Use the To Double Precision Float function to convert the time stamp value to a lower precision, floating-point number."

 Please see at pic: fcn_get_date_time_in_seconds.PNGIn LV6.0 it works good, but the same code in LV7.0 doesn't work good. What is wrong? Where is the best place to find help about it?
Message 1 of 3
(2,599 Views)

The small black dots in the 7.0 version indicate that a data type conversion is performed: your Time_Begin and Time globals are not double precision variables.

Make them double precision and retry.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 3
(2,596 Views)

thank you. you are right. it works goot now.

0 Kudos
Message 3 of 3
(2,584 Views)