02-28-2006 06:36 PM
03-01-2006 01:43 AM
Clusters are fixed data structures - you're not supposed to modify them programmatically.
You might want to look into an array of variants (look in the advanced palette) or into flattening. A variant can hold several data types and you will just need to handle your different types by using something like a case structure or a polymorhic VI for the conversion. You can create a cluster which will hold the name string, type enum and data variant and build that into an array.
03-01-2006 02:17 AM - edited 03-01-2006 02:17 AM
Hi dtsantl,
Like tst says, your best bet is probably the Variant. NI hasn't yet unlocked the power to programmatically create diagram objects (... though I believe this capability has been lurking in LabVIEW for 5 or 6 years). One can create "from scratch" a Variant that represents an arbitrarily complex cluster, but to convert the Variant to the cluster, the cluster typedef needs to be available already.
Cheers!
Message Edited by Dynamik on 03-01-2006 02:20 AM