LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read TDMS File Into a Cluster

Hello,

 

Is there an easy to way to convert the Property Values and Property Name from the TDMS Get Properties VI into a cluster? 

 

I know exactly how many elements and the names of the properties. I really just want any way to combine the name to the value and display it to the user. 

 

My thought for this is to have a case structure that separates the Property Value Data Type (Double, String, I32, etc.) then inside each data type have a case structure for each property name that relates to that type. I would then unbundle a Cluster Constant and write the data. This seems really long and manual. 

Download All
0 Kudos
Message 1 of 2
(874 Views)

My Tremendous TDMS Toolkit can do this.

 

https://www.vipm.io/package/hooovahh_tremendous_tdms/

 

The start of that code was here:

 

https://forums.ni.com/t5/Example-Code/Read-and-Write-array-of-Cluster-to-TDMS-Get-Set-Cluster-and-En...

 

It isn't human readable since it flattens the cluster into a single property (well two since the type is stored separately) but it can read and write without any issue.

Message 2 of 2
(861 Views)