Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

read timestamp from DAQ device

Highlighted

read timestamp from DAQ device

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

0 Kudos
Message 1 of 4
(610 Views)

Re: read timestamp from DAQ device

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.

0 Kudos
Message 2 of 4
(551 Views)

Re: read timestamp from DAQ device

Hi RichieTheBard

thanks for your answer.

I attached my C++ code and TDMS file.

Thanks in Advance!

0 Kudos
Message 3 of 4
(544 Views)

Re: read timestamp from DAQ device

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

 

0 Kudos
Message 4 of 4
(507 Views)