I'm new to the nidaqmx library, and I wondered if there is a way to read from the default sample clock in the NIDAQ(USB-6346) card. I want to do this to figure out the time it takes to collect a particular number of samples. Any responses/solutions would be much appreciated! This is also the first question I posted on Stackoverflow, so I'm unfamiliar with the formats and such.
What I tried:
I tried using the time/datetime modules in Python already, but it doesn't seem like a very accurate way to measure the (elapsed) time it takes to collect samples. For example, If I use that to find the time it takes to collect 10 samples at 10Hz, the output would be 1.02 seconds rather than 1 second.
I've also tried accessing the default clock through the methods in the nidaqmx documentation and searching in the Stackoverflow/ni community discussion forums, but I still have difficulties finding a way actually to get outputs from the clock.