LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Saving the clusters as default settings

Solved!
Go to solution

DFGray wrote:
In the interest of full disclosure, you should know that the flatten/unflatten solutions are relatively brittle to change.  If you change your clusters in the future, you need to keep the old datatypes around so you can read old files.  Even though it takes longer, it is more maintainable to explicitly read and write each element in your clusters.  The configuration file VIs or TDMS work well for this type of thing.  You can also use HDF5, XML, or any other hierarchical file system.  LabVIEW 8.6 and higher includes a generic XML parser.  Which you choose depends on your requirements.

 

You may want to take a look at my Nugget on Exploit Control references where I posted code that will save/restore arbitrary clusters (you may have to add more data types if you used more than what I coded). It will survive cluster changes to a resonable extent (it is not capable of guessing if you rename elements).

 

Have fun,

 

Ben

Message Edited by Ben on 02-12-2009 08:19 AM
Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
0 Kudos
Message 11 of 11
(302 Views)