LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to convert tdms to ascii files?

Hello,
 
I need to convert *.tdms files to an ascii file.  I have 16 channels and scalling coefficient information in the tdms file, With the TDMS-Image Viewer i can see the 1-D array waveform perfectly, but I cant write it to an ascii file. When I use a signalexpress.vi or the spreetsheat.vi for writing an LVM/ascii file,  information gets lost. (Red symbol at INPUT!!!!)
 
Please answer me, because I dont have lots of experience with labview and an ascii file is more easier to handle for me! I found only export to matlab and exel, but i just want it in an ascii file.  Reading the tdms and opening it is no problem, but connecting the right blocks to the 1D array waveform without dataloss doesnt work.
 
thank you for reading
 
danny
0 Kudos
Message 1 of 7
(6,101 Views)
Hi Danny,

which LabView version do you use? What kind of information does the tdms file include?

Kind regards
Carsten
0 Kudos
Message 2 of 7
(6,075 Views)
Thank you for reply,
 
i have the new version 8.5.   With signalexpress.vis  i can do asciis but the red symbol (at input) is there so i dont want to get information lost.
The tdms file has header information for scalling factors and unscalled data for 16 channels.
so because tdms files are faster for writing i want to convert them to ascii with a Convertion Vi, but it seems that with an express vi he stops because it cant handle handle with the headerinformation.
 
now i use the signalexess vi to write tdms data, before i did it manully by setting channel and group information.
 
 
Please tell me if the red symbol AT input of a Signalexpress VI does matter?   its a 1D array wavefrom that goes in to the input.
 
thank you for this discussion, i hope that i dont need to use the matlab import option for tdms!!
 
greetings danny
0 Kudos
Message 3 of 7
(6,066 Views)
Hi Danny,

could you tell me what kind of measurement you do? If you acquire data with Signal Express and save them you can also do this with LabView. If you look at the Example Finder you will find lots of examples how to acquire data and save them to a file e.g. a .bin file

Kind regards
Carsten
0 Kudos
Message 4 of 7
(6,060 Views)
Ich möchte 16 Kanäle mit jeweils 60 kSample , also insgesamt ca. 1 MS/s abspeichern.
Ich benutze reines Labview und nicht das Signalexpress programm, sondernd die Signalexpress vis, welche mir irgendwie nicht so genau erscheinen, weil man nicht viel einstellen kann.
 
Die tdms dateien habe ich bereits generiert. möchte sie jetzt als ascii umwandeln, hoffe da gibt es einen möglichkeit, die binäre tdms zu öffnen und sie dann als ascii zu speichern.
 
grüsse
 
0 Kudos
Message 5 of 7
(6,048 Views)
Hi Danny,

ich habe hier zwei Links in denen die Umwandlung von tdms in ASCII beschrieben wird:

http://zone.ni.com/devzone/cda/epd/p/id/2944

http://digital.ni.com/public.nsf/allkb/A3663DE39D6A2C5A86257204005C11CA

Viele Grüße
Carsten
0 Kudos
Message 6 of 7
(6,021 Views)

Hi!

danke für den LINK! werde IHN bestimmt für matlab benutze!

bin jetzt endlich auf eine lösung gestossen. Ich lade die TDMS file über die tooldiagramme anschliessend splitte ich jeweils das array und über die TDMS read tools erhalte ich die nötigen informationen über gruppe und kanal. anschliessend schreibe ich die einzelnen spalten und Zeilen als ASCII datei! hat wunderbar funktioniert!

 

grüsse

0 Kudos
Message 7 of 7
(6,001 Views)