How Do I Configure a Counter Task to Measure Two Edge Separation in Terms of Ticks of a Third Channel

Updated May 8, 2023

Reported In

Hardware

  • PCIe-6361

Driver

  • NI-DAQmx

Issue Details

I am trying to count the time between signals of two channels but in terms of digital ticks on a third channel rather than standard time.

Solution

This functionality is part of the Counter Input - Two Edge Separation Task, you will need to set this task up with the following property nodes. You can see the basic implementation of a this Two Edge Separation Task in the LabVIEW DAQmx example code, specifically Counter - Read Pulse Width and Frequency (Continuous).

1. CI.TwoEdgeSep.First.Term -  This sets the input terminal for the leading edge of the two edge separation.
2. CI.TwoEdgeSep.Second.Term - This sets the input terminal for the trailing edge of the two edge separation.
3. CI.CtrTimebaseSrc - This will be an input to set the terminal for the signal whose pulses, or ticks, you are wanting to count.