How to Generate PWM Signals with a Digital Module

Updated Nov 23, 2020

Environment

Hardware

  • NI-9401
  • cDAQ-9171

Software

  • LabVIEW Full
  • LabVIEW Base

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

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.