How to Create a Millisecond Timestamp in LabVIEW

Updated May 3, 2018

Reported In

Software

  • LabVIEW

Issue Details

I am trying to create a software timed millisecond timestamp in LabVIEW, how do I do this?

Solution

The Get Date/Time In Seconds VI in LabVIEW generates a millisecond value. If you place an indicator on the output of this function you will see the complete time stamp.

Additional Information

If you would like the timestamp displayed as a string, the default output for the Format Date/Time String function does not include milliseconds. To include the milliseconds, the time format string input must be changed from its default value. The default timestamp format is %m/%d/%Y%H:%M:%S. 

To include millisecond values append %3u to the end of the string. The resulting string is: 
%m/%d/%Y%H:%M:%S%3u
 

WAS THIS ARTICLE HELPFUL?

Not Helpful