01-04-2008 12:19 AM
01-04-2008 08:05 AM
I'm a little confused about what you're trying to do -- it's not quite making sense in my head. Here's what I think you're saying:
1. Counter A generates 1 output pulse for every 'X' input edges from a PMT.
2. Counter B measures buffered periods of Counter A's output, establishing timestamps for equal-size groups of 'X' PMT edges.
3. You would like counter A to "reset to 0" AND (?) generate an output pulse if some time 'T' passes before receiving 'X' input PMT edges.
I don't understand why you'd want counter A to generate a pulse for less than 'X' PMT edges. You'd end up with a buffered period measurement in counter B which represents something different than all the other ones. That period would represent the time for less than 'X' pulses, and you wouldn't know how many.
Or do you only want to reset A but NOT output a pulse in case of a timeout scenario?
-Kevin P.
01-04-2008 08:28 AM
01-07-2008 06:08 PM
Hi Ashesh,
As far as I’ve been able to determine, there isn’t a way to do this (completely in hardware) using the DAQmx API. You might be able to do this if you develop your own driver, and you would certainly be able to do this with the onboard FPGA of an R Series card. I have a couple solutions that would work, but require restarting a task (software element). If you’re interested, let me know and I’ll post it.