08-04-2009 02:06 AM
hi,
i need to create elements in cluster dynamiccaly.is it possible.my problem is i need to read the xml file and i need to create the cluster element based on the attribute
in this xml
<cluster>
<element 1/>
<element 2/>
<cluster/>
In this case the cluster should have two element
<cluster>
<element 1/>
<element 2/>
<element 3/>
<cluster/>
In this case the cluster should have 3 element is it possible to change the cluster dynamically bt reading the xml.
08-04-2009 03:12 AM
Hello Parthipan,
unfortunately you can not set the size of a cluster dynamically. If all elements have the same data type, just use an array instead. Or you can read first all elements as string type, then convert each to the type you want.
08-04-2009 04:50 AM
I dont think It is possible.
08-04-2009 06:38 AM
hi,
we can creat the control dynamically atleast
08-06-2009 03:35 AM
Hi ,
Is it possible to vary the array size dynamically
Regards
Parthipan
08-06-2009 05:23 AM
parthipan wrote:hi,
we can creat the control dynamically atleast
YES, by using LabVIEW Scritping.
08-06-2009 05:25 AM
parthipan wrote:Hi ,
Is it possible to vary the array size dynamically
Regards
Parthipan
Yes, by using Insert, Replace, Reshape & Delete array functions (and in many more ways).
08-06-2009 05:50 AM
08-06-2009 06:29 AM - edited 08-06-2009 06:31 AM
08-06-2009 09:05 AM
If you don't know about clusters and arrays it's a VERY bad idea to even look at scripting. That's jsut going to get you into a lot of trouble. LabVIEW scripting is not supported by NI, and so any code you create will be on your own.
As noted before, if the element types are all the same, use an array.
To learn more about LabVIEW it is recommended that you go through the tutorial(s) and look over the material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free.