LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Fractions of a second

Solved!
Go to solution

Hi, 

 

I'm trying to get a time stamp, converted to a string through format date time, to show fractional seconds. Tried using the %u function but it doesnt seem to respond. Tired to put digits in between the % and u, eg %3u. Still doesnt show. Is it because of the format Im display it in I32?

 

 

Thanks.

 

 

0 Kudos
Message 1 of 5
(3,915 Views)

Why are you using "u"?

 

Try %.3X.

 

Also you could use the Format into String function.  It's default format gives you time with 3 decimals as well as the date.

0 Kudos
Message 2 of 5
(3,905 Views)
Thanks for the reply but that doesnt give me the accuracy I require. Please see attached pictures. The time returned has hour minute second, then 12. Instead I want it to read 975. How do I do that?
Download All
0 Kudos
Message 3 of 5
(3,885 Views)
Why not do this. Change the format to floting point and as many digits of percision as you need.
Message Edited by aeastet on 03-24-2010 08:34 AM
Tim
GHSP
0 Kudos
Message 4 of 5
(3,864 Views)
Solution
Accepted by topic author PT21
You need to add a "u" in your format string   %H%M%S%.3u%X    and you need to use the "FRAC/EXP string to number" conversion with a "DBL" indicator. You are using a conversion which will only show integer numbers
Putnam
Certified LabVIEW Developer

Senior Test Engineer North Shore Technology, Inc.
Currently using LV 2012-LabVIEW 2018, RT8.5


LabVIEW Champion



Message 5 of 5
(3,863 Views)