I use the NI-PCI 6225 card.
I want to read the 1000 samples with the time of each sample. I used
DAQmxConfigurLogging C API, but in the TDMS file that was generated, there was no time for each sample.
What should I do to achieve this?
It sounds like you're using a continuous or finite acquisition. If that's the case, the TDMS file will store a waveform, which has three properties:
t0
) -- this is the wall-time of the first sampledelta_t
) -- this is the time between each samplesamples
-- these are measured valuesTo get a time for each sample, use this formula:
time_at_sample_n = t0 + (n * delta_t)