12-17-2009 08:32 AM
I've seen the post on how to concatenate CSV files on DiaDem ... but how do you concatenate TDM files together?
I'm surprised this functionality isn't embedded into the software as it is a fairly common task, and the script is likely beyond most user's ability to maintain.
Solved! Go to Solution.
12-17-2009 02:32 PM
Hello Colin,
There are several examples you can use to concatenate data channels in DIAdem.
This one is from the Website:
http://sine.ni.com/devzone/cda/epd/p/id/3870
Another good example is included in DIAdem and accessible from the Help > Examples menu. From there, drill down to the folder: "Examples > Creating Scripts > Scripts > Appending Channels to Each Other"
Between these two examples we should hopefully take care of your question.
Best regards,
Otmar
06-11-2010 04:12 AM
I am trying to concatenate 4 large tdms files, each of them around 500MB. The example seems to work fine but for anyone who is not familiar with VBScipt is kinda difficult to modify the existing example into skipping the import file subroutine and choose your own files. Is there any version that prompts you with a dialog box?
Thank you
06-12-2010 05:05 PM
Hi Saloutios,
With TDMS data files that large you might consider the DOS method of concatenating them, which can also be automated from LabVIEW or VBScript:
http://forums.ni.com/ni/board/message?board.id=60&message.id=11813&requireLogin=False
Regarding the concatenation script listed on the web, I'm not sure what you want to have different. You say that you want to modify the script to skip the import routine, but then you ask for a file dialog, which is actually in that script. All you need to do is change 2 constants-- the DataPlugin name and the file extension(s) to show in the file dialog.
Brad Turpin
DIAdem Product Support Engineer
National Instruments
06-14-2010 04:25 AM - edited 06-14-2010 04:27 AM
Hi Brad,
Maybe I didnt explain myself that well, my fault. The case is:
Sorry, I havent been using scipting before so I might be missing something here. As it goes for those changes you suggested. i will give it a try but could you please confirm which scipt we are talking about now exactly? As for concatenate files, the code Herbert provided in that thread is great but it does nor address exactly my problem.
Thanks,
Panos
06-14-2010 05:05 AM
Meanwhile, I modified the 2 constants to the scipt so it will load TDMS files instead of CSV. This is the error I get while it is loading the 270MB file ( the last out of the 4 files I am loading).
And this is the line of the error:
06-14-2010 01:52 PM
This is the error I get when I am trying to load from the Navigator a tdms file of around 900mb.
06-15-2010 12:51 PM
Hello Saloutios,
I was wondering if you could upload the file you are having trouble with to out ftp site. You can upload it to ftp://ftp.ni.com/incoming. This way I can take a look at it and see if I can reproduce the problem. When you upload it to the ftp put it in a folder with your name, Saloutios, and post back so I can know when it is up. I was also wondering what version of Diadem you are using? Also what operating system, which service pack and your processor? Look forward to hearing from you and have a great day!
Best Regards,
Adam G
06-15-2010 01:48 PM
Hi Adam,
Done, I have uploaded the files and the specs you required.
Thank you very much
Panos
06-16-2010 10:27 AM
Hello Saloutios,
I took a look at your files and was able to get the last file, the 270 MB, file to open up in the Diadem Data Portal. I did run into a problem the first time but once I removed the index file I was able to load the file. I would suggest trying that and then try and open the file. Another possibility is that the last file is corrupted so you might be able to recreate the file and then try again. Let me know if this works out for you and have a great day!
Best Regards,
Adam G