简体   繁体   中英

DAQmxConfigurLogging C API

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:

  • The start time ( t0 ) -- this is the wall-time of the first sample
  • The sample period ( delta_t ) -- this is the time between each sample
  • The array of samples -- these are measured values

To get a time for each sample, use this formula:

time_at_sample_n = t0 + (n * delta_t)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM