LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

TDMS to Array

Hi!

I need to put TDMS into CSV format for further data handling and I simply cant find any useful VI to dismantle TDMS's data-cluster.

With two changes TDMS -> TDM -> CSV I can do it, but it's rather slow (maybe buffering would help speed?).
How about TDMS defragging before sending it to TDM DataStorage?

Any ideas or hints for performance improvements or straight TDMS -> CSV change?

Thank you in advance,

Tomi Nurminen
0 Kudos
Message 1 of 6
(4,815 Views)
What about the following code:



Oh, you should set the delimiter to ','

Ton

Message Edited by TonP on 01-03-2007 02:31 PM

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 2 of 6
(4,809 Views)
Thank you for the answer... The simplest ways are the easiest in everything, it seems 😄

Message Edited by Nallez on 01-03-2007 07:43 AM

0 Kudos
Message 3 of 6
(4,804 Views)
The above structure is very slow with large files. Is there any solution for faster TDMS to CSV transforming?

Buffering?
0 Kudos
Message 4 of 6
(4,773 Views)
What do you mean by slower?
Is 10000 elements taken 10 times the time of 1000 elements?
It is not that strange that the function is slow. Each element has to be converted and parsed  into a totally different data type.

But you could use the TDMS viewer for Excel if I'm right (have not used it myself) will only work with english OS'es

Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
0 Kudos
Message 5 of 6
(4,765 Views)
Some of the speed problems might be related to allocating enough memory for all your data points in the tdms file. To get around this, read and write the data from the tdms file to the csv file in chunks.

There are two inputs on the tdms read function that will facilitate this, Count and Offset. You could, for instance, read 1000 points at a time and increment the offset by 1000 each time until EOF. For an example, open up the Convert TDMS to TDM VI in the TDMS folder and see how it writes the data in chunks.
Jarrod S.
National Instruments
0 Kudos
Message 6 of 6
(4,759 Views)