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

Gate two retriggered counters using a seperate counter

$
0
0

Hi everybody,

 

please let me explain my setup (PCI 6602) in a few words:

I have a light barrier, a flash lamp and a spectrometer. The light barrier measures the frequency of my device continuously and works as some kind of a clock for the whole system.

 

A spectrometer counter (retriggered) is producing triggers continuously after some defined delay. This delay changes based on the frequency and some factors and is updated using CO.Pulse.LowTime.

 

The lamp trigger/counter is configured retriggerable as well and is armed (internal routing) with a defined delay on the spec trigger.

 

The data aquisition is done using the spectrometer drivers and an USB connection. The spectrometer is programmed to aquire a defined # of spectra on command.

 

This setup is based upon the Queued State Machine - Producer Consumerarchitecture and works perfectly. It is fast, stable and so on, BUT:

A lot of unnecessary triggers are produced because there is always some waiting time from aquisition to aquistion. This is not important for the spectrometer. Hence, for the flash lamp it might be a problem because its lifetime is very limited.

 

Therefore a thought about some kind of gating counter which turns on/off the output of the spectromter and lamp triggers. The state trigger could be turned on with the spectrometer DAQ-commad and turned off afterwards. By means of this almost every lamp flash could be utilized (some in the end might get lost).

 

Somebody has some idea how to realize this without loosing too much performance? The gating of the spec and lamp counters should be as fast as possible (it has to be less than 5ms).

 

Thank you so much for your support.

 

Johannes


Viewing all articles
Browse latest Browse all 1271

Trending Articles



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