07-28-2016 04:48 AM
Hii,
Want to create a Cluster from a TDM File by Importing the channels in Labview.
regards,
Akshay
07-28-2016 05:16 PM
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
07-29-2016 03:03 AM
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
07-29-2016 06:31 AM
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
07-29-2016 08:41 AM
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
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
16 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord