To download NI software, including the products shown below, visit ni.com/downloads.
Overview:
This VI uses the Counter Event to pause the counter acquisition after it has counted down to zero.
Description:
This example demonstrates on counting digital events on a Counter Input Channel. The Initial Count, Count Direction and Edge are all configurable.
When the counter on your M Series DAQ Device rolls over it creates an event that can be routed to a PFI line and then used as an event to pause your count or even start another task.
Edges are counted on the counter's default input terminal (refer to section IV, I/O Connections Overview for more information), but could easily be modified to count edges on a PFI or RTSI line.
Requirements:
LabVIEW 2012 or compatible.
NI-DAQmx 15.5.1 or compatible.
Steps to Implement or Execute Code:
I/O Connections Overview:
The counter will count edges on the input terminal of the counter specified in the Physical Channel I/O control.
Block Diagram Steps:
**This document has been updated to meet the current required format for the NI Code Exchange.**
Regards,
Dan King
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
I need to run a control task every n pulses received from a digital tach. The current system does this asynchronously, not by polling. I think this may be the analogous approach. So, i guess I would count down from a predetermined value and use an event to run the task...but I'm not sure.