I'm new to the nidaqmx library, and I was wondering if there is a way to read from the default sample clock in the NIDAQ 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!
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 to actually get outputs from the clock.