If you use DAQmx, you could just program the counter task to use the AI Sample Clock as its own
sample clock. Then each time you take an analog read, you can follow it with a counter read, knowing that the same # of samples will be ready. Attached is a screenshot to get you started. Note that the 'rate' input must be wired even if you don't know the correct value. In the case of edge counting, I don't think it matters what value you put in.
There are also ways to do this under traditional NI-DAQ, but it's not quite as simple.
-Kevin P.
ALERT! LabVIEW's subscription-only policy came to an end (finally!). Unfortunately, pricing favors the captured and committed over new adopters -- so tread carefully.