LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

data type from Get Indexed Properties.vi

I created TDMS file including my custom properties such as Company, Model and Serial.

These properties was written by "TDMS file properties" with string control. 

Get Indexed Properties.vi from DataFinder toolkit read a property (in file, channel group, channel) of TDMS file.

Using this vi, the value of custom fields was read but their datatype (string, Int32, etc) was set to "Unknown".

 

What do I have to do to set the datatype definitely?

 

 

0 Kudos
Message 1 of 4
(2,833 Views)
data type Data type of a property indexed by the DataFinder. {String:23, Int32:3,Double:10,Time stamp:30, Unknown:0}
0 Kudos
Message 2 of 4
(2,800 Views)

Muks, you misunderstood my question.

I am asking how to get the datatype correctly from TDMS.

I set the custom field as a string type but returned from the vi was "Unknown".

When I wrote the TDMS, I used a string matrix like TDMS example file.

 

labmaster.

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

In the DataFinder custom properties are of the type"Unknown" as long as they are not optimized. Since you can index multiple different files you can have a custom property with the same name but different data types in different files.

So you optimize custom properties for two reasons:

1.To "bind" a custom property to a specific data type. Then Get Indexed Properties.vi will return the right data type.

2. To increase the query performance for custom properties.

 

To optimize custom properties you can either use the invoke node "Optimize Custom Properties" of the DataFinder Toolkit API or you can right click on the DataFinder tray icon and select "Optimize Custom Properties...".

 

Hope that helps,

Eva

Message 4 of 4
(2,732 Views)