10-28-2006 06:04 AM
10-28-2006 01:05 PM
11-01-2006 03:32 AM
11-01-2006 03:54 AM
The Variant Configuration File palette has 2 VIs, one for writing a cluster to a text file and one for reading it back. After reading the file you can pass it through a Variant to Data primitive to convert it to the cluster data type. It really can't get much simpler than that.
The advantage this has over XML is that the files are much easier to read and modify using a simple text editor.
11-06-2006 02:38 AM
11-06-2006 04:19 AM
11-06-2006 09:43 AM
The VI you're missing is part of the String package. Personally, I think it's best to simply download all the packages and then you don't have these problems.
Anyway, in the attached example (7.0) you can see that the VIs go over the cluster recursively and saves the data from each control by using its label.
Unclebump usually gives good advice, but in this case I would stay far away from his method, because if you need to change the structure of your cluster, you will have to write some additional code to convert the data from the file which you already saved.
11-06-2006 09:46 AM
Of course, there's a small bug in the code. The loop on the left should look like this.

11-06-2006 06:12 PM
02-16-2007 03:07 PM
This was actually a bug in the oglib_variantconfig (OpenG Variant Configuration File) package -- it was not declaring the dependency on oglib_string (OpenG String Tools) package. I have just released a new version of oglib_variantconfig (version 2.7-2) that fixes this problem. Now when you try to install oglib_variantconfig, it will automatically install oglib_string, too.
@tst wrote:
The VI you're missing is part of the String package. Personally, I think it's best to simply download all the packages and then you don't have these problems.