Example Code

Elapsed Timer

Code and Documents

Attachment

Download All

Overview
This example VI shows an Elapsed Timer to get the time you have spent.

 


Description
This example VI can calculate the seconds you have spent. The main structure of VI is a while loop which only run once when you calling it, but the shift register of the while loop will reset timer or get elapsed time depending on the command you input. The features of this VI is that it can provide many timer at the same time which based on the index you set in.

 


Requirements

  • LabVIEW 2012 (or compatible)


Steps to Implement or Execute Code

  1. Unzip the attached folder to your computer
  2. Open the VI "Elapsed Timer 2012 NIVerified.vi"
  3. Run the program

 

Additional Information or References
VI Snippet

 Block Diagram.PNG

 

 **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.