LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

dynamic creation of clusters elements

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.

 

0 Kudos
Message 1 of 11
(8,463 Views)

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.

Regards
MY
Message 2 of 11
(8,457 Views)

 


In this case the cluster should have 3 element is it possible to change the cluster dynamically bt reading the xml

 

 

I dont think It is possible.

0 Kudos
Message 3 of 11
(8,440 Views)

hi,

 

we can creat the control dynamically atleast

0 Kudos
Message 4 of 11
(8,433 Views)

Hi ,

 

   Is it possible to vary the array size dynamically

 

Regards

Parthipan

0 Kudos
Message 5 of 11
(8,405 Views)

parthipan wrote:

hi,

 

we can creat the control dynamically atleast


 

YES, by using LabVIEW Scritping. Smiley Wink
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 6 of 11
(8,395 Views)

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). Smiley Happy

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 7 of 11
(8,394 Views)
hi  can u tell about LABVIEW Scriptping.do you have any material.how it is done?
0 Kudos
Message 8 of 11
(8,389 Views)
See this & this. Also, Google for more details. Smiley Happy
Message Edited by parthabe on 08-06-2009 06:31 AM
- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 9 of 11
(8,378 Views)

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.

0 Kudos
Message 10 of 11
(8,363 Views)