11-04-2010 01:59 PM
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
11-04-2010 10:16 PM
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.
11-05-2010 09:05 AM
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
11-05-2010 09:18 AM
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.
11-05-2010 09:34 AM
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
11-05-2010 10:13 AM
An easy way to interactively edit/manipulate TDMS files is NI DIAdem....
11-05-2010 10:29 AM
Aside from using all the VI's available in the TDMS palette you could move to a program like DIAdem.
11-07-2010 07:21 PM
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.
11-08-2010 12:42 PM
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.
11-19-2011 08:41 PM
I still can't use the vi
Can show the example how to use the vi