LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I edit a tdms file

Basically I need a way to delete data from a tdms file or add data (from another tdms file for example).

 

So far I've created a program to convert it into an excel file. From there I can edit the excel file and add/delete channels or groups. Then the program is supposed to convert the excel file back into a tdms file. I'm having trouble with this part.

 

Is there an easier way?

 

Thanks, Patrick

0 Kudos
Message 1 of 22
(13,081 Views)

I think this can be accomplished through writing VI with TDMS primitives. To be more specific, first, you can use TDMS "read" primitives ( TDMS Read, TDMS Get Properties and TDMS List Contents ) to read the required channels and groups out, then, use "write" primitives ( TDMS Write, TDMS Set Properties ) to write a new file or replace the original file.

0 Kudos
Message 2 of 22
(13,056 Views)

Thanks for the input. I use the tdms read and write primitives frequently.

 

I'm really looking for a way to graphically and intuitively move the data around or add/delete data. I need other people to be able to use this without too much explanation. Excel's interface accomplishes this. Everyone knows how to add/delete a column or copy and paste data. This is why I've been trying to create a program that converts tdms to xls and then back to tdms after editing. The convert xls to tdms step is a little complicated

 

Do you have any ideas of how I can create an interface like this in Labview?

 

 

Thanks

0 Kudos
Message 3 of 22
(13,036 Views)

Don't know if this will help you, but have you tried to use the TDM Excel Add-In? It usually gets installed by default, but you can install it by re-running the installer, or just downloading it.

0 Kudos
Message 4 of 22
(13,026 Views)

I do have that installed. That only converts a tdms to xls. I need to keep all my data in the tdms format so my data collection programs can access and add data. The problem is that sometimes there is bad data from the instrument (oscope, impedance analyzer, etc.) because of a loose wire or some other problem. That bad data is stored in the single tdms file that is used for the entire experiment. I need to the user to be able to easily delete that data and continue the experiment.

 

Thanks for the help

0 Kudos
Message 5 of 22
(13,019 Views)

An easy way to interactively edit/manipulate TDMS files is NI DIAdem....

0 Kudos
Message 6 of 22
(13,008 Views)

Aside from using all the VI's available in the TDMS palette you could move to a program like DIAdem

Ben J.
National Instruments
Applications Engineer
0 Kudos
Message 7 of 22
(12,993 Views)

I think you can first read data out from TDMS file and use controls and indicators to implement a UI for users to view and edit data graphically in labview, after that, call TDMS write functions to produce a result file. Of course, this involves a lot of programming work to do in labview.

0 Kudos
Message 8 of 22
(12,958 Views)

polloc:

 

I have a VI that you can use to do this. If you convert your TDMS to excel, this VI will allow you to turn your excel file (saved as a .txt file) back into a TDMS file.

 

Also, the second VI I am including you can remove data without converting away from TDMS.

 

Let me know if either works for you.

 

 

National Instruments
Applications Engineer
Download All
Message 9 of 22
(12,933 Views)

I still can't use the vi

Can show the example how to use the vi

 

0 Kudos
Message 10 of 22
(12,497 Views)