DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

TDMS set propertie boolean..

I create a TDMS file in labview 2009 with the set propertie value. I set a boolean propeties. Then I read back these proerties with get properties. This is working. Then if I open this TDMS file with Diadem 11.1 and I save that file. The format of the file change. I cannot read the file in labview anymore. I got an error message. Do a solution existe?

 

 

Thanks

 

Thef ile name "WRITE IN DIADEM.vi" is a TDMS file. Is a exemple of a file modifie in Diadem

0 Kudos
Message 1 of 4
(3,985 Views)

Hey cynt,

The behavior that you're seeing is happening because DIAdem does not accept boolean properties or channels. The TDMS format does allow this but when you open up your TDMS file in DIAdem, it coerces your booleans from the "boolean" data type to a standard integer. Thus, when you try to read this property back in LabVIEW, you need to change the datatype from boolean to integer.

 

I've attached a modified version of your Read TDMS file with booleen VI that shows this. Let me know if you have any questions on this!

 

Lars L

Applications Engineer

0 Kudos
Message 2 of 4
(3,967 Views)

Thanks for your answer!

 

Is their other type of data that Diadem those not accept?

 

Thanks againSmiley Very Happy

0 Kudos
Message 3 of 4
(3,965 Views)

Hey cynt,

For properties of a channel, here is the list of data types that are allowed (as described in the DIAdem help):

 

"The DataType variable can accept one of the following constant values: DataTypeFloat64, DataTypeFloat32, DataTypeInt16, DataTypeInt32, DataTypeString, DataTypeUInt8, DataTypeDate, DataTypeEnum, and DataTypeUnknown."

 

I snagged this from the ChnPropCreate function documentation. Here's a screenshot:

 

19535i3E8328789C7D576C

 

Let me know if I can clarify anything else. Have a good one!

 

Lars L

Applications Engineer

0 Kudos
Message 4 of 4
(3,962 Views)