01-02-2008 09:02 AM
01-02-2008 01:20 PM
01-05-2008 03:01 AM
01-07-2008 05:36 PM
Hello *LJ,
Which NI device are you using to acquire the digital signal? Most National Instruments boards require TTL signals for digital input (DI) and counter input. If the signal does not match TTL specifications, then connecting it to the DI or counter input lines could result in unexpected measurements. Make sure that your signal matches TTL specifications for level and rise time to ensure that it will work with the DI.
If both signals match the counter input specifications for your device and are on separate lines, you can use the edge separation functionality of a counter input. The example Meas Two Edge Separation.vi in the NI Example Finder (Help -> Find Examples) following the path Hardware Input and Output -> DAQmx ->Counter Measurements -> Two-Signal Edge-Separation shows how to configure this with the DAQmx VIs. The function Two Edge Separation in the DAQ Assistant indicates which two PFI lines are used for this task.
If your signals do not match the digital specifications for your device, then it will be necessary to use the analog inputs for your device and determine the edge separation in LabVIEW.