LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TDMS logging data vs time

So the last day or so I have been having a problem logging data correctly using TDMS tool set.

 

The goal is the following:

a) 1 TDMS file:  10 Channels of data, each channel logs Current, Voltage, Temp ect.  All values are a "double"

b) there is a delay after reading the data for each of the 10 channels of 1 min (thats my sampling rate)

c) I wanted all of this data to be logged in 1 tdms file and then to be able to open it using the tdms viewer and see all my data graphed vs time.  Thus being able to track the voltage ect and such over time.  Time meaning I start at 1:05pm and eand at 3:06 pm or something like that.

 

I thought this would be a pretty basic thing to achomplish.  To my surprise I have yet to find a way to get this to work.  I end up with all my data being logged, but the time scale on the x access is only 1:05.00 pm to 1:05:35  but yet my test ran for several hours.  This caused a bit of confustion at first because this is sapposed to log the charge and discharge rate of a battery which takes several hours.

 

So I precided to try and change the input data type to a Dynamic data type where I could specify the start time stamp and the current time stamp but still no luck...

 

Closest example is the TDMS - Express write data (time and frequency domain).  However even that fails to log time correctly when you add even a 10 second delay in the loop)

 

Any help at all would be greatly appreciated.

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

Hi JeffG8868,

 

Maybe the first step to debug is to make sure how many data values in your channel. In TDMS File Viewer, for a specified channel, it has a property "NI_ChannelLenght" that means the number of data values in the channel. If the number is alright, maybe is the display problem. TDMS File Viewer only display the first 1, 000 values of a channel by default. You can configure this number by clicking "settings" button on TDMS File Viewer.

0 Kudos
Message 2 of 2
(2,829 Views)