Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Measuring Duty Cycle of a PulseWidthSignal using Counters on NI 6229 DAQ.

i am feeding a pulse width signal from hydraulic valve to NI 6229 DAQ.
i want to measure the duty cycle of the signal using counter?can any one suggest  how to acheive ?
0 Kudos
Message 1 of 2
(4,093 Views)
Hi Ganga,
 
There is a great example of how to measure duty cycle in the NI Example Finder. In LabVIEW, click Help>Find Examples. This will open the Example Finder, which has a wide variety of example code that you can use. In the center of the Example Finder window you will see a list of folders. Double-click Hardware Input and Output, then DAQmx, then Counter Measurements, then Period or Pulse Width. There is an example under this labeled Meas Duty Cycle-Buffered-Finite.vi that demonstrates how to take a finite number of duty cycle measurements on a Counter Input Channel. Open this example and read the documentation on the block diagram.
 
Hope this helps!
--
Michael P
National Instruments
0 Kudos
Message 2 of 2
(4,081 Views)