To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example VI shows how to retrigger a counter task by using the analog comparison event.
Description
This VI uses the analog comparison event to retrigger a counter task. The counter output is used as the analog input sample clock. This allows you to have a retrigger analog input task with an analog edge trigger.
Requirements
Steps to Implement or Execute Code
Additional Information or References
NI 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.
The Analog Trigger is configured in the bottom task. The Analog Trigger circuitry inputs an analog signal and outputs a digital signal based on the Analog Trigger configuration (level, hystersis, etc). That digital output signal can then be used to start any task. In this example it is routed to trigger the counter in the top task.