LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get a TDMS channel datatype programmatically?

Hello everyone,

So I’ve encountered this problem and I don’t know how to solve it.

I’m trying to open a TDMS without knowing what’s inside. I can obtain the Groups and Channels but I have no idea how to get the data type of each channel programmatically.

Does someone know how to do this?

0 Kudos
Message 1 of 3
(1,161 Views)

Digging into the TDMS viewer source, it looks like you can use Get Properties API like below to get the Data Type

santo_13_0-1672765391538.png

The following VIs seem to handle formatting the different data types into string

santo_13_1-1672765514123.png

 

 

Santhosh
Soliton Technologies

New to the forum? Please read community guidelines and how to ask smart questions

Only two ways to appreciate someone who spent their free time to reply/answer your question - give them Kudos or mark their reply as the answer/solution.

Finding it hard to source NI hardware? Try NI Trading Post
Message 2 of 3
(1,149 Views)

It sure looks like this same question was asked over on Reddit recently.

 


@santo_13 wrote:

Digging into the TDMS viewer source, it looks like you can use Get Properties API like below to get the Data Type


Yes that's more or less what I told OP to do, but they didn't seem to understand what I suggested.

0 Kudos
Message 3 of 3
(1,127 Views)