06-12-2012 12:56 PM - edited 06-12-2012 12:56 PM
I have two sources of TTL pulses. I need to count, from a c/c++ script, how many TTL pulses are received from source A between each of the TTL pulses received from source B.
I have a PCI-6229 connected to a BNC 2090A, and both of my TTL pulses sources are connected via BNC plugs.
Is there any function that can do that?
I tried to get an example script using the DAQ assistant from LabWindows, selecting acquire signals -> counter input -> Edge count. The function that I got as a result was DAQmxCreateCICountEdgesChan, and I am afraid that it only takes the counter as an argument and not the second digital input that marks the intervals.
06-12-2012
03:02 PM
- last edited on
08-09-2024
06:10 PM
by
Content Cleaner
From your description it seems to me that the best option is to use two-edge separation measurement. I am not on a PC with CVI installed so I cannot point you to a specific example but this tutorial gives you a brief explanation and some guidance on examples to look at.