How to Calculate Duty Cycle Using 1D Array Data in LabWindows ™/CVI ™?

Updated Aug 4, 2026

Reported In

Software

  • LabWindows/CVI

Issue Details

I have a 1-D array of PWM data and I would like to calculate the duty cycle using LabWindows. Is there any available function in LabWindows?

Solution

LabWindows/CVI provides the PulseMeas function in the Advanced Analysis Library, which measures pulse characteristics including period, pulse width, and duty cycle directly from a waveform. Alternatively, duty cycle can also be calculated using a 1-D array of waveform samples using this function. 

Additional Information

The PulseMeas function, which can be found in the Advanced Analysis library is only available in LabWindows Full edition.