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.
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).