LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can you change the order of columns in a tdms file

I would like to change the order of columns or channels in a tdms file. specifically I would like to add a time stamp channel as channel 0 after the fact and just shift the other channels to the right.
0 Kudos
Message 1 of 2
(2,476 Views)

If you're using LabVIEW to read data from the file, you can just wire the channel names for "TDMS Read" accordingly (array of strings with the first element being the name of the time channel). The order in which the channels were stored wouldn't matter then.

 

DIAdem, Excel, TDMS File Viewer and others however will display channels in the order in which they were stored. If that's what you're using, you can create the time channel first thing after creating a new file by calling "TDMS Set Properties" and setting a property on that channel. TDMS Write will then add all new channels further down the list (side note: if you are using the "NI_MinimumBufferSize" feature, you need to call "TDMS Flush" after setting the property).

 

Hope that helps,

Herbert

0 Kudos
Message 2 of 2
(2,471 Views)