Description: This example configures a DAQmx Counter Task for Hardware-Timed Single Point PWM measurements on an X Series DAQ card. It imitates HWTSP Pulse Measurement, except it will not throw an error if there is no pulse (0% duty cycle or 100% duty cycle).
Steps to implement or execute code
Rename your X Series DAQ Card to 'Dev1' in Measurement and Automation Explorer.
Attach your PWM Signal to specified port on Front Panel (PFI9).
Run the VI.View the Duty Cycle Measurement
I/O Connections Overview: Connect a PWM signal to the terminal specified in PWM Signal Indicator on the Front Panel. This defaults to PFI9.
Requirements Software LabVIEW 2012 or compatible NI-DAQmx 16.0 or compatible
Hardware cDAQ with C series Counter Input Module and Analog Output
**This document has been updated to meet the current required format for the NI Code Exchange.**