LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How To Get TDMS "Length" Channel Property

Solved!
Go to solution

When opening a TDMS file in Excel with the Add-On, I see there is a Length property for the number of channel data points. I would like to get and use this value as a variable in my code.


The Length property does not appear in either the File or the Channel list of property names when queried.

Attempts to simply apply the  string "Length" in the TDMS_GetChannelProperty ( ) function does not work.

 

How can I programmatically get access this value in CVI?

 

TDMS.jpg

0 Kudos
Message 1 of 2
(1,048 Views)
Solution
Accepted by topic author scottrod

Figured it out. You don't call a property, rather:

 

TDMS_GetNumDataValues (channelHandle, &numValues);

0 Kudos
Message 2 of 2
(1,041 Views)