08-15-2024 06:02 PM
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
Solved! Go to Solution.
08-15-2024 08:34 PM
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