12-11-2007 08:15 AM
12-11-2007 08:18 AM
12-11-2007 08:24 AM - edited 12-11-2007 08:24 AM
12-11-2007 09:49 AM
12-11-2007 09:59 AM
check it here
i use exactly this strategy. i am a big lover of clusters. the big advantages are:
- adressability of every single element via reference
- using bundle and undbundle by name allows for very efficient self documentation (if you label all your controls), on top of very clean coding.
But: try to keep clusters limited in nb of different elements in. i would be carefull doing cluster of cluster of cluster (more than a hierarchy of 2 is difficult to manage).
also, i cant stress enough how efficient are Action engines for transfering cluster info, on top of encapsulation of the cluster.
also: use clusters only as type def. you will often have to create constants, indics, unbundle...in several subvis. keeping in a typedef allows to update the cluster in all instances at the same time.
12-12-2007 02:26 AM
12-12-2007 04:12 AM
12-12-2007 04:20 AM
12-12-2007 04:28 AM
NI representatives will make better comments than i do, yet:
in general if you do not open the front panel of the subvis, there will be no actual copy of the data in it (certain rules apply tough, depending what is in the subvi, and if the control is in the main frame or in a structure).
however if your subvi is reentrant there might be a copy. it doesnt seem to apply in your case, unless you do some recursive treatment.
one thing tough: to my taste your cluster is too big. are you sure you cannot separate it in few clusters, each with its own shift register and subvis? a subvi can have several clusters as input for specific interlacing treatment of data.
12-12-2007 04:36 AM