Does the package handle arrays (1d and 2d, esp. with clusters in them), and
enums in the cluster? Those are the tricky controls.
I finally succeeded in splitting an array ref into an array of variants
(representing the array elements, inc. correct data).
I made this (using only pure LabVIEW) to use in ini files (save/load
functions). I can now put a reference of a panel, control, tabcontrol into
the VI, and get a format similar to the ini format as a result. It is
recursive, and handles tab controls, clusters, etc. fairly nice...
However, the code is a mess. Also, it's one way traffic, I cannot jet write
data back to a panel (nor have I tried).
Regards,
Wiebe.
"Jean-Pierre Drolet"
email> wrote in message
news:506500000005000000519C0000-1027480788000@exchange.ni.com...
> Johan,
>
> You didn't tell us yet if you actually solved your problem using OpenG
> Tools.
>
> If not, here is how:
> to extract a cluster element from the variant array, use "Index
> Array.vi" from the lvdata toolset. It will output a variant cluster
> that is the required element. Then use "Get Cluster Elements Names.vi"
> to, needless to say, get an array containing the names of each cluster
> element. To split the cluster into its elements, use "Cluster to
> VArray.vi" that outputs an array of variant data corresponding to each
> element.
>
> If you goal is to write this data to inifile, then use the
> variantconfig packages that does use lvdata VIs to do the above steps.
> For example, the released version can write an error cluster as a ini
> section, e.g.
>
> [error]
> status=True
> code=1
> source="Bad input"
>
> The next release is able to write each element of the cluster on its
> own i
ni line:
>
> error.status=True
> error.code=1
> error.source="Bad input"
>
> and this is done recursively for embedded cluster to any level.