07-15-2009 04:09 PM
Guys, I am looking to perform two timing tasks at once. I have a relatively slow square wave (2kHz) with a 50% duty cycle I am looking to count the edges. I am looking to measure the delay between pulse trains on the same pin. Using the example program I can count the edges without a problem. I’m half way there. I am looking to count say 150 edges (input to a piezo sounder) and then measure a delay (between beeps) ranging from 100mSec to 500mSec followed by another round of 150 or 300 edges. This beep sequence could occur once to ten cycles depending if there is an error, sensor input failure, or system OK signal. This is where things escape me. If you have any advice on how to accomplish that, that would be great. Thanks in advance.
07-16-2009 01:38 PM
Hey,
That's seems to be a cool app. From what I know counters are retriggerable hence you pause them after counting N numbers of edges and then restart them after X msec of delay. It might require some degree of programming with DAQmx. Do post the working code once you are done. Don't want to leave you hanging hence here is the KB that might help you ;).
Good luck
-lab