Inpriser,
I can describe how I did it under traditional NI-DAQ 6.9.x and LabVIEW 6.1. I expect a similar thing can be done under DAQmx, but I'm not near enough my daq pc to check right now.
By setting the "gate polarity" property, you can control which edge will be registered first. For example if you set rising edge polarity, the first element in your data acq array will be the time from when you started the acquisition until the first rising edge. All subsequent entries will alternate as expected.
Note that you may miss an initial falling edge in this setup. Also note that even if
you haven't explicitly defined the gate polarity, a default value is likely being used anyway -- that should keep your results consistent from run to run.
If you can't afford to miss the initial falling edge, reply and I'll try to help some more.
-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.