To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This VI can be used to calculate the time between two tick counts and it will return the data in a timestamp data type.
Description
The tick counts are subtracted and then the days, hours, minutes, seconds, and fractional seconds are calculated. The result is turned into a timestamp data type. The time is checked to see if the time has exceeded the update interval and the Elapsed Time output is updated.
Requirements
Software:
Steps to Implement or Execute Code
1. Run the VI.
2. Observe elapsed time as days, hours, minutes, seconds and milliseconds.
Additional Information or References
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
There is a nice function in the vi.lib/Utility folder that will return a high resolution time. This was added in LV 2010.
http://forums.ni.com/t5/LabVIEW/New-LV2010-VI-High-Resolution-Relative-Seconds/td-p/1213011