Pulse-Width Modulation Using Scan Interface with C Series Modules

Updated Dec 13, 2017

Reported In

Hardware

  • NI-9401
  • NI-9472
  • NI-9474
  • NI-9475
  • NI-9402

Issue Details

Is it possible to configure a C Series module, such as the NI-9401, to perform pulse width modulation (PWM) under the RIO Scan Interface?

Solution

Yes, this can be done statically by configuring the module from within the LabVIEW Project Explorer or dynamically in the LabVIEW environment.  See Software Support for CompactRIO, CompactDAQ, Single-Board RIO, R Series, and EtherCAT for supported modules and follow the steps below to perform PWM under the RIO Scan Interface.

1.  Once the module has been added to the scan interface as shown in the image below, right-click on the module, then select Properties.
 


2.   When the C Series Module Properties configuration window is visible select Specialty Digital Configuration from the Category window, then select Pulse-Width Modulation from the Speciality Mode window. Now you will be able to select the Frequency of the PWM signal for each channel, as shown in the image below.


 

Additional Information

Possible frequencies on supported modules are as follows:
 
C Series ModuleFrequencies 
NI 9401*1 Hz, 50 Hz, 250 Hz, 500 Hz, 1 kHz, 5 kHz, 10 kHz, 20 kHz
NI 9402*1 Hz, 50 Hz, 250 Hz, 500 Hz, 1 kHz, 5 kHz, 10 kHz, 20 kHz
NI 94721 Hz, 50 Hz, 250 Hz, 500 Hz, 1 kHz, 5 kHz, 10 kHz, 20 kHz
NI 94741 Hz, 50 Hz, 250 Hz, 500 Hz, 1 kHz, 5 kHz, 10 kHz, 20 kHz
NI 94751 Hz, 50 Hz, 250 Hz, 500 Hz, 1 kHz, 5 kHz, 10 kHz, 20 kHz


For this module, you must also configure the required Line Direction for the lines of the module, which is done from within the C-Series Module Configuration window under the Module Configuration section.

WAS THIS ARTICLE HELPFUL?

Not Helpful