Example Code

PWM Output With LabVIEW FPGA

Code and Documents

Attachment

These examples demonstrate how to develop a PWM output using the NI LabVIEW FPGA Module and a reconfigurable I/O device. This LLB includes two examples.

The first example implements an individual PWM output based on the pulse period and pulse width supplied by the host VI. The second example implements eight PWM outputs using a complete digital I/O port on the device. The LLB includes host VIs that you can run on LabVIEW for Windows or a real-time target. 

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.

Contributors