NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Reply
Member
christian_w
Posts: 153
0 Kudos

TDMS Channel Property NI_DataType

I write I16 values to a TDMS channel from LabVIEW. In DIAdem the data type is always float64. The property NI_DataType is read only so how can I set the correct data type ? In fact I have problems because the conversion from I16 to float64 gives me strange results like if I store a sinus my expected negative values will be saved as MaxFloat64 (4.294964939E+09)sinus_cut.jpg

 

I probed my LabVIEW data and I'm sure that it's ok.

 

Regards

Christian

Member
christian_w
Posts: 153
0 Kudos

Re: TDMS Channel Property NI_DataType

If I make a explicit type cast to double before writing the data to the TDMS the data looks good. sinus_ok.jpg

Member
AndreasK
Posts: 199
0 Kudos

Re: TDMS Channel Property NI_DataType

Could you post one of the files including the I16?

 

Greetings

Andreas

By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page