Example Code

Software-Timed While Loop Comparison in LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview

This VI shows the comparison between the "Tick Count" function and the "High Resolution Relative Seconds" function for software timed loops.

 

Description

This VI calculates the amount of time to execute both while loops separately. The time is set by the user. When run, the VI displays the amount of time it took to complete execution. These VIs are showing the numerical differences in the "Software-Timing" of each function.

 

Requirements

  • LabVIEW 2014 (or compatible)

 

Steps to Implement or Execute Code

  1. Set "Seconds" Value
  2. Run VI

 

Additional Information or References

201708091.pngVI Snippet.png

 

 

 

**This document has been updated to meet the current required format for the NI Code Exchange.**

Rob W.

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.