LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Check out the related Code Repository Files or visit the LabVIEW Wiki Development Environment Portal


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> Idea: Allow Bundle By Name to require all elements., LabVIEW product suggestion
jdunham
post Sep 21 2008, 10:18 PM
Post #1


Very Active
***

Member
Posts: 200
Joined: 6-March 05
From: Mountain View, CA
Member No.: 1764
Using LabVIEW Since:1994
LV:8.5 ,. ,.
United States us_california Nothing Selected


I just posted this on the LV wish list. Since one doesn't ever get feedback from that (except maybe seeing your idea in a far-future version of LabVIEW), I wanted to get some reaction (support) here.

QUOTE
I usually use Bundle By Name rather than the plain Bundle for clusters, and certainly for all typedef clusters. The only time not to use it is when you need to do a multi-key sort, since that works really well, and the cluster data structure is just temporary. 99% of the time my clusters are typedefs, and using Bundle By Name always makes the code clearer and easier to debug by inspection.

However there is a disadvantage in that if I add something to my cluster, then existing bundle by name nodes will just use the default value for the new item, and it's not always easy to find all the associated bundling nodes. This often leads to bugs.

In contrast, I use enums a fair amount, and I disable the use of "Default" in the case structures, so when I add an item, my application breaks in a bunch of places, and so I am forced to go fix them all and in the process most of the potential bugs are eliminated right away.

My suggestion is to add a right-click checkable property to the bundle by name node, requiring it to have all elements explicitly wired in. Then if I turned this on for a given node, the VI would break whenever I add an element (just like it does when I remove an element).

It would also be helpful to have this on the unbundle by name node though I realize it's not very labview-like to be forced to wire a nodes outputs.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post Sep 21 2008, 10:18 PM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
orko
post Sep 21 2008, 11:44 PM
Post #2


Extremely Active
****

Premium Member
Posts: 532
Joined: 18-October 05
From: Seattle, WA
Member No.: 3266
Using LabVIEW Since:2005
LV:8.6 ,8.5.1 ,7.1.1
United States us_washington Nothing Selected My Blog


I agree that this would be helpful, although I'm not sure of a sane way to implement required inputs for clusters inside clusters.

Basically, I would want to be able to either wire each control inside a subcluster up one by one, or be able to wire the "All Elements" in one shot. I suppose it's possible to enforce that all elements are wired. Just not as easy to implement as it first sounds.

--------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 1st December 2008 - 10:53 PM