09-04-2012 01:10 AM
I am using the two different cluster name 1 and 2,inside the cluster the element name are same.I am placing this two cluster in one more cluster name 3.all the three clusters are type def.I am unbundiling the 3 cluster in my program.this one is working fine.I am placing one more element in cluster 1 or 2.then my unbuldiling cluster order is changing.
Solved! Go to Solution.
09-04-2012 01:18 AM
Hi Labview,
Can you attach a screenshot of your blockdiagram?Can't visualise more clearly from your statements.Iam asking for screenshot because Iam using LV2009.
09-04-2012 02:05 AM
Hi shanmugharajan,
You solved the issue??
09-04-2012 03:32 AM
If you use the Unbundle it'll unbundle in the Tab order set in the type def, if you use Unbundle by name it should stay in the same order due to being able to connect the name.
'/Y
09-04-2012 04:11 AM
I cant solve the issue
09-04-2012 08:41 PM
@Shanmugarajan wrote:
I am using the two different cluster name 1 and 2,inside the cluster the element name are same.I am placing this two cluster in one more cluster name 3.all the three clusters are type def.I am unbundiling the 3 cluster in my program.this one is working fine.I am placing one more element in cluster 1 or 2.then my unbuldiling cluster order is changing.
It depends how and where you add the element into the cluster. If you add the new element at the top then obviously the index of the elements will get changed so your undling also changes because your unbundle function checks only the element index not the element name/label.
09-04-2012 10:24 PM - edited 09-04-2012 10:25 PM
rt click on the constant from the block diagram to reorder the list from the unbundle by name list or goto the front panel rt click the cluster and reorder...reorder cluster
also,you can unbundle by name the constant, "one at a time" and pick what order you want from the list...
09-04-2012 10:42 PM
If you are not using unbundle by name you should. The code is basically unreadable when you use the simple unbundle. Also, the unbundle by name will ensure that your code still uses the correct element of the cluster since it is doing so by name, not position.
09-05-2012 12:12 AM
Hai here i have attached the vi and cluster for your clarification
09-06-2012 11:43 PM
this is a bug in LabVIEW 2010 and 2011, this is however corrected in LabVIEW 2012 ( which I have tested earlier).
I found a work around, you need to use multiple levels of Unbundle by name to unbundle from nested clusters to prevent the problem.
I am attaching a screenshot of the code, which should solve your problem in LabVIEW 2010 / 2011.
Let me know if you need further assistance.