To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example performs a task for a set interval.
Description
This technique can be used to repeat any type of task including saving a file every hour or changing an indicator every minute. This example also allows for other tasks to occur at shorter intervals within the while loop. The while loop will continue to run at the speed dictated by the loop timing.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Snippet
**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.