Why Does DAQmx Counter Read not Return Seconds?

Updated Jan 4, 2019

Issue Details

I am trying to measure the pulse width of a signal using DAQmx, but the output is in clock ticks even when set to seconds.
 

I am using a counter to measure the pulse width, but the DAQmx Read function is not returning seconds.

Solution

When using DAQmx to read a counter value you can specify the units using a property node.

If the units are seconds, then the output datatype must be double.

An integer datatype will cause the DAQmx Read to return ticks of the counter clock even if the units specified are different.

WAS THIS ARTICLE HELPFUL?

Not Helpful