To download NI software, including the products shown below, visit ni.com/downloads.
Overview
This example VI returns the number of channels in a group from a TDMS file reference.
Description
Currently in the TDM Streaming API in LabVIEW, there is no function that simply returns the number of Channels in a specified Group. Using the following SubVI will accomplish this without cluttering your code with Listing the Contents of the TDMS File and then using the Array Size function.
Note that the TDMS file reference must already be opened before using this function, and should then be closed afterward.
Requirements
Steps to Implement or Execute Code
Additional Information or References
VI Block Diagram
**This document has been updated to meet the current required format for the NI Code Exchange.**
Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.