Quantcast
Channel: Counter/Timer topics
Viewing all articles
Browse latest Browse all 1271

Counting number of input pulses with on-demand TTL high level input

$
0
0

Hello,

 

I am trying to realize recording the number of input pulses during each high TTL level input using LabVIEW DAQmx (PXI-6251 + BNC-2110).

The input pulses to be counted come from the single photon detector, and the input TTL signal (as gate) is defined by user on-demand to collect the counting number within this finite duration. So, both of the input pulses and TTL signals are really random, or to say, not regular and not periodic.

I sketch the purpose as shown in the following diagram:

tyshen_0-1690208772106.jpeg

 

 

I succeeded in using pause trigger to pause counting at low TTL level, but cannot record the value at the end of each high TTL portion using 1 Channel N samples read VI. The reason seems that these two functions (pause trigger and sample clock) conflict because they use the same gate channel for M series DAQ.  

 

So I wonder if there is a good way to realize my aim in this kind of DAQ? 

 

By the way, I find from the user manual that "pulse-width measurement" looks automatically doing what I want. But I could only readout the pulse width from the task, and did not know how to readout the count. Is it possible to directly get the count values from the register or memory as mentioned below? 

tyshen_1-1690208772108.jpeg

 

tyshen_2-1690208772111.png

 

 

Thank you very much in advance!


Viewing all articles
Browse latest Browse all 1271

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>