To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example demonstrates how to continuously run a task that starts and stops at specified times.
Description
This program continuously checks if current time is greater / equal than a specified start and stop time. A specific task is triggered continuously after start time is reached. This layout can be used to perform any task continuously for a certain amount of time. Just place the task to be performed inside of the case structure. The task will run until the stop time is reached or the user presses stop.
Requirements
Software
Hardware
Steps to Implement or Execute Code
Additional Information or References
**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text ‘NIVerified’. Read here for more information about the new Example Guidelines and Community Platform.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.