08-21-2013 03:33 PM
I have a rather large project that is becoming larger and I need to add a few more items to my type-def cluster. I would like to reorder the cluster, mainly for neatness but also so simmilar thing are grouped together. If I do this will every bundle by name and unbundle by name also be reordered? Or will I have to manually go through every sub-vi and fix all the broken wires and clusters that are now connected to the wrong elements?
Solved! Go to Solution.
08-21-2013 03:49 PM
I think you can do this in a way that will work, but there's definitely a possibility to screw up. First, make sure you have ALL VIs that reference the typedef cluster loaded in memory before you start making changes to the typedef. That way those VIs will get updated immediately when you make changes. You don't need to have all the front panels open, but make sure that the top-level VI, and any dynamically called VIs, are open. Then, make one change at a time to the typedef, and after each one save and apply changes, then save all. For example, add elements, apply and save all, then reorder, apply and save again. Unbundle and Bundle by Name should be fine, but the unnamed versions may lead to broken wires. This level of caution may not be necessary, but I have had situations where I renamed and reordered and it led to unbundling an unexpected element in some places, so now I'm extra careful and so far it's worked.
08-21-2013 04:02 PM - edited 08-21-2013 04:07 PM
If you only use bundle by name and unbundled by name you will not have any issues. I have done it many times. I generally always work using a project so the VIs are loaded but I have done this even in cases when items weren't loaded and have not run into any issues. If you use the basic bundle and unbundle you may run into troubles. BTW, I definitely have not be as cautious as nathand.
08-21-2013 04:10 PM
Okay thank you both, I feel confident it will work fine as I only use bundle and unbundled "by name" on my type-def clusters.