Quantcast
Channel: DIAdem topics
Viewing all articles
Browse latest Browse all 3196

NI_DataType vs Datatype properties

$
0
0

What is the difference between NI_DataType and Datatype properties?

Thanks to Excel Importer I can check the Datatype properties and see e.g. that my channel is of type DT_DOUBLE.

However, when I try to read this property it can't be found.

TDMS_Type.png

 

I need to create the tool in LabVIEW which loads TDMS file, alter it and then save it preserving the original file structure (data types). Now I'm a bit confused about what property should be used to accomplish my task.

 

I have two groups: One with waveform channels and second with numeric channels. If I read waveform channel NI_DataType I'm getting 10 (which can represent DBL, Analog waveform or Dynamic data). If I read my numeric channel NI_DataType I'm getting 0 which is not correct.

Excel returns DT_DOUBLE Datatype property for both channels.

Data.png

 

So how to properly determine the data type?


Viewing all articles
Browse latest Browse all 3196

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>