labview >> trouble reading TDMS file

by Herbert Engels » Fri, 22 Jun 2007 02:10:08 GMT

You have chosen settings that will create a timestamp channel and one
or more data channels (double precision float) in the file. This is a
good choice if your values are not equally sampled. However, you cannot
read these values back with just one operation, because a timestamp is
128bit wide and a double is just 64bit wide.The conversion would be

The best way of using the TDM Streaming functions is to use two "TDMS
Read". You wire the channel name for the time channel to one of
them and wire an array of time stamps to it's "data type" input. The
second "TDMS Read" should be typed to an array of doubles (since your data is
not equally sampled, a waveform wouldn't do you any good) and retrieve
the rest of your data. You would have to provide group/channel names
for both "TDMS Read" functions in order for that to work.

LabVIEW is shipping with examples (.\examples\file\plat-tdms\TDMS -
Write Event and .\examples\file\plat-tdms\TDMS - Read Event that show how to properly save and retrieve channels of
different types to/from the same channel group.

Hope that helps,

labview >> trouble reading TDMS file

by abhiM » Fri, 22 Jun 2007 05:10:07 GMT

Based on what you suggested, I have set up my vi to read the TDMS file as shown in the screenshot(read.png)

I also used the TDMS viewer to look at the data contained in my TDMS file. A screen shot is attached(Data.png)

I get the feeling that I am not setting the right data type for my second TDMS reader.-abhiM

Message Edited by abhiM on 06-21-2007 03:51 PM



labview >> trouble reading TDMS file

by Herbert Engels » Fri, 22 Jun 2007 05:10:08 GMT

You can go with the waveform type, but I'd recommend an array of doubles,
because waveforms don't buy you anything here. The problem in your VI is that you
need to provide an array of channel names to the second function,
otherwise it will still try to load the timestamp channel (and fail converting it).

I am also wondering why you chose "One header per segment". That only
makes sense for values that cannot be appended (e.g. frequency-domain
data or histogram results) or triggered measurements without a time channel. Since you have
neither one, you might be better off with "One header only". You will
then have only one channel group with all data appended to the same set of channels. With that said, if your current settings
make it easier for you to post-process your data, obviously that would a good
reason to stick with it.


labview >> trouble reading TDMS file

by Herbert Engels » Fri, 22 Jun 2007 05:10:09 GMT

An empty numeric array will do. See .\examples\file\plat-tdms\TDMS - Read data (events).vi.

Similar Threads

1. Trouble reading a TDMS file

2. Having trouble converting tdms files into multiple .lvm files

I have been attempting to save measurements to a .tdms file and then post test run them through the write to measurement file (WTMF) express vi to create .lvm files to be read in excel. I need to write the data to multiple files as there are more than 65k lines. The closest I have come is to set the offset and count paramaters on the tdms read and send different sections to seperate write to measurement file express vi's. The problem with this is, it starts the time column over at zero on each file. 
When I just read the whole tdms file into the WTMF express vi, and set it to write multiple files, it only writes one file. 
So, is there some other way to write the data to a file readable by excel with channel names and time stamps, or is there a way to get the WTMF express VI to work properly.
I am aware of the TDMS reader available for excel, but the customers I will be giving the data to would prefer a .lvm or similar file, and do not want to download the plug in. I have posted the TDMS data if that will help. I cannot upload .tdms, so change it back to open it. Thank you. 
Edit: I cannot upload the file it is too big, if it will help I can post a portion of it later.Message Edited by deskpilot on 07-02-2008  08:53 AM

3. read from measurment file express vi will not read tdms data

4. Read Time Channel from TDMS file and error -2525

5. read a selected channel of a tdms file

6. How can I read in a TDMS file into Sound and Vibration Assistant

I have recorded a signal from 2 channels from a PXI 4496 DAQ card. I recorded this signal with the TDMS file format from a VI in Labview. I would like to import these signals into the Sound and Vibration Assistant for freq. analysis. In sound and vibration assistant there is an import logged tdms from signal express but I can not seem to import my original signal?  How can I import this data? 

7. TDMS files large, take long time to read

8. Re : read a selected channel of a tdms file

Thanks MikeS81, helps a lot.... problem is solved.have a nice day !Alex