02-11-2018 06:36 AM
hi everyone
i need help...
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?
Thanks
02-12-2018 03:53 PM
If you are working with waveforms to handle the data you are acquiring you should be able to reference the Timing of the AnalogWaveform object, to obtain and handle this timing data.
If you are already handling the timing data but it is being written to file could you show how you are doing this.
02-13-2018 12:30 AM - edited 02-13-2018 12:30 AM
Hi RichieTheBard
thanks for your answer.
I attached my C++ code and TDMS file.
Thanks in Advance!
02-13-2018 03:51 PM
Since you are actually working with the ANSI C library there's actually no built in way to obtain a time stamp while acquiring the data with the API itself, since this functions only handle the data itself.
Given this, you'll have to implement the following document talks more about this.
http://digital.ni.com/public.nsf/allkb/354468202721D85D8625759F004B0357