DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

Create a Cluster in Labview from a TDMS or TDM File

Hii,

 

Want  to create a Cluster from a TDM File  by Importing the channels in Labview.

 

regards,

Akshay

0 Kudos
Message 1 of 5
(3,641 Views)

I remember hearing that there are some solutions for that posted at the LAVA forum for LabVIEW programmers-- at least going from LabVIEW clusters to TDMS files. 

 

Brad Turpin

DIAdem Product Support Engineer

National Instruments

0 Kudos
Message 2 of 5
(3,619 Views)

Hi Akshay,

 

could you give use more information about your application?

I would be interessed in the purpose of the cluster created with the TDMS file.

Should the cluster always look like the same or should it change with the content of the TDMS file? Did you already tried the regular array functions of LabVIEW to create the cluster?

 

Regards, Stephan

0 Kudos
Message 3 of 5
(3,599 Views)

Hello Brad & Stephan,

 

Well  the Cluster  Contents are not  variable. Yes  the values of the Static elements will vary  but  the  cluster  is  is not    dynamic.

 

I have fixed how the TDMS  file shld be  but there r abt as 50 variables  & thts why I want to Import them in labview.

Also  at  some point if I change   the  TDMS file  I could import the new cluster.

 

regards

Akshay

0 Kudos
Message 4 of 5
(3,589 Views)

If you know the type, and it doesn't change, then you can flatten it to a string, and unflatten on the read.  Or you can go with breaking up the cluster into its individual elements and read and write them.

 

https://decibel.ni.com/content/docs/DOC-13118

0 Kudos
Message 5 of 5
(3,581 Views)