To download NI software, including the products shown below, visit ni.com/downloads.
Overview
The example demonstrates how to delete a channel from a TDMS file.
Description
Since there is no possibility to directly delete a channel from a TDMS file with LabVIEW. This example therefore converts the TDMS file to a TDM file and performs the changes and converts the TDM file back to a TDMS file.
Requirements
Software
Hardware
Steps to Implement or Execute Code
Additional Information or References
Can I Delete Channels or Properties from a TDMS File with LabVIEW?
http://digital.ni.com/public.nsf/allkb/9563ADB08D2CFCA18625753F0059E476?OpenDocument
**The code for this example has been edited to meet the new Community Example Style Guidelines. The edited copy is marked with the text 'NIVerified'. Read here for more information about the new Example Guidelines and Community Platform.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.
The VI increased the amount of properties of the channel group.
There should be a way to just delete a TDMS channel without affecting the properties of the channel group.
the example creates extra properties, i.e. register 0, etc. and it screw up files that have non-NI properties in the channels. we have special properties in the channels to help convert data from raw to EU, after using this vi to delete a channel we were no longer able to display the data properly. Good idea but it is properly better to write your own.