LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

string convert extended precision

I'm writing a vi that sets a time stamp using the "Get Date/Time In Seconds.vi", converting the time stamp format into a double to get seconds, then I'm saving it as a string to a text file. When I read in the string from the file and use the "Decimal String To Number.vi" the output is limited to I32, which truncates the number to the upper I32 integer limit value of 2^31-1.

Is there a better way to store a time stamp and do a later comparison, or convert the string directly into a double format from the file?

Thanks!
0 Kudos
Message 1 of 2
(2,738 Views)

@wawatts wrote:
Is there a better way to ... convert the string directly into a double format from the file?


Use the "Fract/Exp String To Number" function, not "Decimal String To Number" which converts strings to base10 integers (as you found out).
=====================================================
Fading out. " ... J. Arthur Rank on gong."
Message 2 of 2
(2,725 Views)