These two OpenG packages offers powerful tools to manipulate variant data.
The tools don't make use of control references or properties but only use
variant data (data + type descriptor). Many useful features are available
such as:
LabVIEW Data Tools:
Get or Set data Name
Get data type as an enum
Convert a cluster to/from an array or an array of variants (no preset
cluster size).
Get or Set a cluster element by its name.
Get the number of elements in a cluster.
Index and replace element in a variant array (any datatype)
Variant Config Tools uses LabVIEW Data Tools to Read/Write in an ini file:
Enums using their string value
Numeric arrays of any number of dimensions
Clusters as ini sections
Clusters (and embedded clusters to any level) with expanded names
(e.g. ClusterName.ElementName=value)
Whole Front Panel data
The package eases the read/write operations for many variables. If you
have to write ten parameters on an ini file just bundle them in a
cluster and call "Write Key (Variant).vi" once. You don't have to make
ten write operations specifying the name of each parameter.
The tools are available for download at
http://sourceforge.net/projects/opengtoolkit
Download these three packages:
variantconfig
lvdata
error
Best of fun and enhanced wiring
Jean-Pierre Drolet
Jim Kring