DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Appending tdms files problem

This code leads to an error 267 because the working directory path is incorrect. You are wiring the bat file path to the working directory. The path should be stripped to get folder of the bat file before connecting to the working directory of the System Exec.vi

 

 merge.png

0 Kudos
Message 21 of 22
(1,443 Views)

I thought I'd add my own experience with this awesome trick.  You can actually use this method to insert channels or groups into an existing TDMS file as well.  Because TDMS channel/group order is defined by the first time the channel/groups are written, you can create a dummy TDMS file with all the groups and channels in the order you want by writing a blank property to the channels/groups.  Then combine that with the TDMS file with the majority of your data, then combine it with the TDMS file that has the channel/group you want to add.  The output will be a file in the order that the dummy file was, but containing the data from the other two TDMS files.

 

Another note that someone may run into is that this combination over command line only works if all the TDMS files being combined are in the same TDMS file format (1.x vs 2.x).  If they are not then the output will be a TDMS file that can't be opened.

0 Kudos
Message 22 of 22
(1,311 Views)