DASYLab

cancel
Showing results for 
Search instead for 
Did you mean: 

making a counter for ttl pulses

Could someone help me in creating a pulse counter in Dasylab? I am using a TTL pulse to open and close a valve via a digital output, but I am having a brain freeze as to what modules I need to put together to get a display of the number of times the valve has been opened/closed. Even better, I would like to have a countdown of pulses such that the counter will know how many pulses the ttl is going to send, then count to zero.
 
Any help is much appreciated!!
0 Kudos
Message 1 of 2
(7,295 Views)
To display the number of times that the valve has been opened and closed -- use the Statistics -->Counter module and count edges (Rising or Falling).

You can use this count to count down from a larger value by subtracting using an Arithmetic Module.

I considered using Global Variables, but, they may not update precisely enough... you need to keep the count and the countdown as data channels. Use a Trigger module to respond when the difference drops below 1.

Note -- you're more likely to get a response to DASYLab specific questions in the DASYLab forums. Go to www.dasylab.com and click on the Forums to see the page with the forum links.



Measurement Computing (MCC) has free technical support. Visit www.mccdaq.com and click on the "Support" tab for all support options, including DASYLab.
0 Kudos
Message 2 of 2
(7,293 Views)