LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

myRio data logging to obtain real time for each sample

Hi everyone,

 

I am using myRio to acquire signals. In the lvm file, I am able to get the y axie data but I could not get the real time for each sample.In the lvm file, the time colunm's data is weird, not the real time display. Please help me to get the time information. Thanks in advance. VI is attached. 

0 Kudos
Message 1 of 2
(2,625 Views)

Hi LHT,

 

In the lvm file, the time colunm's data is weird, not the real time display

Because you fiddle with DDT wires and ExpressVIs?

Because you work with plain 1D arrays before converting them to DDT and because you convert those DDT back to waveforms? How should all those ExpressVIs magically attach the "real" time to your (former) 1D array data?

Basically the DDT is just a waveform inside, but you don't provide the t0 and dt data for that waveform. Missing that information the ExpressWriteFile function cannot generate a meaningful time axis…

 

- Why is there a timer in your loop when you also use a TWL inside this loop?

- Stay away from DDT/ExpressVIs in your loop. Use "real" datatypes like waveforms (with proper settings)!

- Cleanup your VI…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 2
(2,593 Views)