Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

pulse train using counter on 6070e

You could speed up the output of the counter and drop samples in software. Lets say you wanted to get two samples during the high tick of a 1 second period (sorry for the crude drawing):

 

SampleFaster.png

 

If we sample at 4 Hz, we can get use the first two sample clock ticks during the high time of the 1 second period. Then in software we can average those two samples and disregard the next two samples. In your case, if you sample at 200Hz, the first 100 samples will correlate to the high time of a 1 Hz signal and the next 100 samples will correlate to the low time.

Steven K.
National Instruments
Software Engineer
Message 11 of 12
(2,583 Views)

 

That's a very good way to do it. Thanks for your comprehensive answer, Steven. I will check it, soon.

This means that, again, multiple sampling at each clock high tick is not possible. Right?

 

Hosa

0 Kudos
Message 12 of 12
(2,581 Views)