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.