LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Ryan-C

Get Number of Channels in TDMS Group

Status: Declined

Any idea that has received less than 2 kudos within 2 years after posting will be automatically declined. 

When you open a TDMS file in Excel, it lists the number of channels in each group.  For example, below it lists that there are 2 channels in the Thermocouples Group, and 5 channels in the Analog Inputs Group.

 

TDMS Excel screenshot.png

 

It would be convenient to have a function in the LabVIEW TDM Streaming API that simply returns the number of Channels, given the Group Name.  It seems that since these values are found by the file for the purpose of the Excel Tool Add-On, that it might be a simple function call.  There is a similar call in LabWindows/CVI called TDMS_GetNumChannels.

Ryan C.
Applications Engineer
National Instruments
3 Comments
Active Participant

Why not just get the channel names and run "Array Size" on the output?

QFang
Active Participant

David_Staab, 

Because if the metric is already processed and available, getting an array (list of channel names) just to use it for "array size" is a waste of memory copies and time. -But that is the way to currently do it that I have found. 🙂

QFang
-------------
CLD LabVIEW 7.1 to 2016
Darren
Proven Zealot
Status changed to: Declined

Any idea that has received less than 2 kudos within 2 years after posting will be automatically declined.