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