LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Using the CompactRIO Real-Time Scan Mode

 

Hello everyone,

I am trying to take a measurement of temperature using the CompactRIO Real-Time Scan Mode and write it to a TDMS file, which has worked successfully. What I still want to do is add a timestamp in the first column in Excel, beginning with zero, at which the data is acquired.
I can't add the timestamp directly to the array; I must first convert it to a double. When I did that, it looked like this(see foto). How can I add the time in the first column to correspond to the time when each measurement is read?452223099_396947712976018_4246842265673703613_n.jpg452568028_472653612143161_272031215042038409_n.jpg

0 Kudos
Message 1 of 4
(263 Views)

Hi ghaithha,

 


@ghaithha wrote:
 

What I still want to do is add a timestamp in the first column in Excel, beginning with zero, at which the data is acquired.
I can't add the timestamp directly to the array; I must first convert it to a double. When I did that, it looked like this(see foto). How can I add the time in the first column to correspond to the time when each measurement is read?


  • When the "timestamp" should start at zero then you want to log the elapsed time: you should use the ElapsedTime ExpressVI or a simple difference of two timestamps…
  • When the elapsed times should appear in the 1st column then you should use BuildArray to prepend the elapsed time value before your two measurement data…

Why do you need to ReshapeArray?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(245 Views)

I would recommend you to explore NI CompactRIO Waveform Reference Library

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 3 of 4
(229 Views)

''simple difference of two timestamps''
I have a timestamp from the data buffer that indicates the time at which the data is acquired. Then I need to subtract this with the start time to get the timestamp beginning with zero. How can I get the start time?

0 Kudos
Message 4 of 4
(205 Views)