02-05-2010 09:23 AM
02-05-2010 09:46 AM
02-08-2010 10:30 AM
Joe John,
I am able to replicate the behavior on my computer. I am going to talk to a few other people to figure out why that's happening. I do know that Type Def controls like to update if the data type has changed but I don't see how it has in this case. It seems like somehow this is saying "data type has been updated to update all controls" but I don't see how the size of the cluster and control position is tied to this. I will get to the bottom of this and post back.
02-08-2010 10:35 AM
02-08-2010 04:47 PM
Joe John,
So the Type Def is resizing because of changing the items in the enum control changes the data type and this triggers all the instances of the Type Def to update everything. It shouldn't be updating the default position though. This is a function of a Strict Type Def. This is what I gather from my experience and from the documentation of Strict Type Def (http://digital.ni.com/public.nsf/websearch/1B04FD6A11E6F17286256C6300588BFA?OpenDocument). I don't know if the issue lies with the documentation being wrong or the functionality. I have tried the functionality on LabVIEW 2009, 8.6.1, and 8.5.1 and all show the same behavior. I have filed a Corrective Action Request (CAR#206862) so that R&D can fix this (functionality or documentation) but these type of fixes normally get rolled into the next release of LabVIEW.
To the problem at hand, I haven't found any workaround for this behavior. I see the functionality that you are trying to achieve (make certain parts of a large Type Def viewable on multiple VIs) but I don't know if this is the best solution. Because it is so large and this resizing is going to happen if you edit parts, you might think about splitting this into smaller chunks. Have type defs of each control and then have larger type defs made up of those smaller ones. So each individual view would have it's own and if you changed something then it would only effect it minorly instead of having that large type def to deal with.