07-11-2025 12:33 PM
Hi all,
I am trying to develop a program to record high-res voltage and current data using the NI-9049, 9244, and 9247. This is my first time using LabVIEW and my first time programming for DAQ in general. I followed this article to get started, but I have had to make quite a few modifications to get it to work properly (mostly following previous discussion posts and some making my best guess).
The voltage/current seem to be recording well at the rate I want, but I would also like to have a column of timestamps including the date down to the us. I tried recording the date and time in RT.vi but it records more timestamps than actual data. What is currently on my .vi is an attempt to convert it so that the FIFO will accept it and then convert back to a timestamp, but I don't think what I'm doing works for arrays. I also tried taking it from the waveform time array, but it would increment by a second and then reset to 0 when looking in the TDMS.
I am not particularly interested in completely remaking the program so if anyone has a solution that can fit into my current situation I would be very grateful! (LabVIEW 2020)
07-11-2025 06:25 PM
Use DAQmx Real-Time mode instead of FPGA mode. It will handle the timestamp for you.
Using CompactRIO with the NI-DAQmx API
Converting an NI-DAQmx VI Into a cRIO-904x LabVIEW Project
Understanding How NI-DAQmx Calculates Waveform Timestamps