Counter/Timer

cancel
Showing results for 
Search instead for 
Did you mean: 

Attaching the current time to every data entry

Solved!
Go to solution

Hello!

 

I have two thermocouples attached to an NI 9211 which is then attached to a cDAQ 9171. I would like to assign the current time to each data entry. Currently, every data entry has the same time stamp of 1/1/1904 00:00:00.000. I understand that Analog 2D DBL NChan NSamp does not have time associated with the data and I would have to add it before writing the file. Apparently, I should be able to do that by using the 'Set Dynamic Data Attributes Functions' with the 'Get Date/Time in seconds' and it should work. However, I am still having the same problem. I appreciate any assistance with this matter.

 

Sincerely,

 

-Mamba75



0 Kudos
Message 1 of 2
(179 Views)
Solution
Accepted by topic author mamba75

You can read the data as a waveform, which contains timestamp information. See Accuracy of the Waveform Timestamp Returned by NI-DAQmx for details.

 

I would recommend using the DAQmx TDMS logging feature. See the shipping example at Help >> Find Examples >> Hardware Input and Output >> DAQmx >> Analog Input >> Thermocouple - Continuous Input.vi

Analog Input\Thermocouple - Continuous Input.vi

You can open a TDMS file using TDM Excel Add-In for Microsoft Excel

-------------------------------------------------------
Control Lead | Intelline Inc
Message 2 of 2
(153 Views)