LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Extract strings in tdms file and write the strings into txt file or lvm file

Solved!
Go to solution

Hi all,

 

I am having trouble to extract strings from a tdms file to write them into a txt file.

The strings were written in tdms is a time stamp data recorded from a compact RIO. 

I have put the string into a different group of the tdms, but when I use tdms read function with the group name I specified, an error message is always turn out.

Thanks for all the help.

 

Ps: I have attached a sample tdms file that I have got over here.

 

Regards,

Yifeng

0 Kudos
Message 1 of 8
(3,993 Views)
Solution
Accepted by topic author yifeng.li

I tried your attached file and it seems everything goes file. I attached the screenshot of my VI here, is that what you want?

1.png

0 Kudos
Message 2 of 8
(3,990 Views)

I have tried your solution, but it doesn't work for me. Can you upload your vi here i have a look?

It keeps saying error when i run it. 

 

Thanks for the fast reply.

0 Kudos
Message 3 of 8
(3,987 Views)

Which version of LabVIEW you are using? And what is the error number returned?

0 Kudos
Message 4 of 8
(3,984 Views)

I am using labview 2012, and the error message is -2525.

0 Kudos
Message 5 of 8
(3,982 Views)

For the node "TDMS Read", it has a terminal called "data type", you have to wire an array of string to it and for the output terminal "data", you also need to wire an array of string to it, so that you can read it out.

0 Kudos
Message 6 of 8
(3,979 Views)

ok, oh, I got that now. I think that is the bit that i missed out.

 

Thanks for the help.

0 Kudos
Message 7 of 8
(3,977 Views)

Hi,

 

Please have a look of previous same threads. You may got some solution for same issue....

 

http://forums.ni.com/t5/LabVIEW/Recording-Data-Voltage-from-Pressure-transmitter-for-1-MS-Excel/m-p/...

http://forums.ni.com/t5/High-Speed-Digitizers/Error-2525-with-Read-From-Measurement-File/td-p/649804

http://forums.ni.com/t5/LabVIEW/Read-Time-Channel-from-TDMS-file-and-error-2525/td-p/665387

http://forums.ni.com/t5/LabVIEW/Timing-problem-in-tdms-read-when-replotting-data/td-p/1881317

 

TDMS Error List

http://zone.ni.com/reference/en-XX/help/371361H-01/lverror/storage_error_codes/

 

−2525 TDMS file data could not be converted into the specified data type.
Thanks and Regards
Himanshu Goyal | LabVIEW Engineer- Power System Automation
Values that steer us ahead: Passion | Innovation | Ambition | Diligence | Teamwork
It Only gets BETTER!!!
Message 8 of 8
(3,974 Views)