From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

measuring duty cycles of 4 square waves at analog input channels of E-series pci daq card

I want to measure duty cycles of four square waves simultanously from my four analog channels of NI 6052E Without using counters. I am using LabView general.
0 Kudos
Message 1 of 2
(2,238 Views)
Without counters this will all have to be done in software. Use a comparison to determine if the state has changed from low to high and vice versa. Count the number of samples that occur between these changes in state. The numbers of high samples and the number of low samples are enough. Keeping track of the count and clearing it between buffer reads will be the only tricky part.
0 Kudos
Message 2 of 2
(2,238 Views)