06-12-2007 04:43 PM
06-12-2007 08:58 PM
06-12-2007 11:04 PM
06-13-2007 01:05 AM
06-13-2007 12:33 PM
06-13-2007 01:47 PM
Hi David,
I have to second tst suggestion and I wrote on this subject in one of my nuggets.
This behaviour is even more dire if you have "auto-grow" (auto-explode) enabled on the structures.
This occurs because LV actually goes through all of the code and removes the old and inserts the new difinitio.
I believe this is how NI's internal developers handle this situation.
Ben
06-13-2007 03:11 PM - edited 06-13-2007 03:11 PM
I found the NI example that makes tst point.
In the "Palette API" (that was developed by an NI Developer and recently posted to the LV Zone) shows how sub-VI's can be used to fix the "auto-explode" diagram issue.
See image below.
BTW: It also lets you document the data through the documention of the sub-VI.
Ben
Message Edited by Ben on 06-13-2007 03:12 PM
07-24-2008 03:36 PM
09-15-2008 04:15 AM
I did have the same problem in the past and never found a good solution. At this time I am updating a cluster typedef I use at many places with contants and this goes horribly wrong....
Using the 'typedef-vi' concept I can solve multiple problems at once:
- The resize
- Constant definition
- Better diagram for large clusters
I can even inlude 'GLI' like features in the vi. I think the attached image speaks for itself
09-16-2008 12:54 AM
I have come to the conclusion that I just bundle my own clusters together as needed without the vi to do the bundling. The cluster contains a command and a variant. The variant can be anything or nothing so I could use about 5 or so different VIs to do the work or I just bundle as I go. I used the later so that I do not have to even have 1 sizing problem.
Michael