This content is not available in your preferred language.

The content is shown in another available language. Your browser may include features that can help translate the text.

How to Display a PWM Signal in LabVIEW?

Updated Jan 3, 2024

Reported In

Software

  • LabVIEW

Issue Details

I have the frequency and duty cycle of a signal. I would like to build a PWM signal using these values so that I can display it on a graph. How can I do this?

Solution

You can use the Simulate Signal Express VI, which is part of the Waveform Generation Sub-Palette. The signal Type should be Square. 

The block diagram will be as shown below

Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.
 

The Front Panel will be as shown below