Given the following simple data-acquisition program.
Problem
I understand that the while loop will iterate close to 10 Hz, where f_loop = f_sample/N_samples_per_channel. Every second, the DAQ captures 100 samples for each channel (6 channels in my case), and the buffer size is set to 10 samples/channel, so the computer has to read or empty the buffer 10 times per second to keep pace with the DAQ. I also understand that the while loop won't operate exactly at 10 Hz because I'm running this over Windows. However, I don't understand how the resulting data file has relative timestamps for every single datapoint (first col in picture below).
Does W2M simply use the dt value in the dynamic data type variable to linearly interpolate the relative timestamp of each sample using the timestamp of each loop-iteration? If not, what's going on?
I ask because I'm trying to program an equivalent program in Python using NIDAQmx, and I'm not sure how to tack-on the time for each sample in my data arrays. Thanks!