04-03-2009 03:33 AM
The tdms files can accept only LabVIEW basic data types not clusters or other collective types. i have developed a vi which will flatten the cluster to a string and manipulate the string to replace certain portions of string so that TDMS files will accept and have a vi that reads the string and converts back into the required format.
Will post the vi after some modifications
04-03-2009 03:51 AM
Flattening the cluster to a string will work only within LabVIEW applications that are aware of the cluster data type. Other LabVIEW applications, for example the TDMS File Viewer, will not be able to extract data from a flattened string. The same goes for any non-LabVIEW application that supports TDMS (Excel, DIAdem, LabWindows/CVI, Measurement Studio, SignalExpress, FlexPro, Origin...). Depending on what your requirements are, this might or might not be important to you.
The library available from LAVA (see my earlier post) splits up clusters into a set of properties and therefore avoids this problem.
Herbert
04-03-2009 06:57 AM
Yeah Herbert the library you mentioned works great.
thanks alot.
but i still wonder why NI hasn't come out with any solution to this problem knowing that it has been there for so long(probably 2 years).
Ritesh
06-12-2009 09:15 AM
Hi Herbert,
i need ur assistance again with the library you mentioned above.
I am saving a lot of properties, wave data and cluster(2 I32 elements) in the TDMS file. I am using the above library the store cluster in the file.
it is saving without any issues, but isn't reading back properly.
I am attaching my Read VI here. The function with reads back the cluster generates an error.
could u pls have a look at my VI and guide me to the solution.
Thanks,
Ritesh
06-14-2009 09:54 PM
Ritesh,
could you post this problem back to the original LAVA forum thread, ideally along with a TDMS file that contains data of this type?
Thanks,
Herbert
06-15-2009 02:04 AM
I tried Posting there, but it seems LAVA forum is offline as i received this message on the site "Sorry...
The LAVA Site is off-line until further notice."
Ritesh