How to Generate PWM Signals with a Digital Module

Updated Feb 22, 2018

Reported In

Hardware

  • NI-9401
  • cDAQ-9171

Software

  • LabVIEW Full
  • LabVIEW Base

Issue Details

I have a digital module with a cDAQ chassis. How do I generate a PWM signal?

Solution

PWM signals are generated using counter tasks. You can use the digital module to access the counters on the cDAQ chassis, and generate a pulsetrain using those counters. To do so, select the Counter on the DIO module and use the DAQmx Channel to specify which terminal to output the signal on, as shown below.
 

WAS THIS ARTICLE HELPFUL?

Not Helpful