NI Home
Cart Cart | Help
Hello Events Academic NI Developer Zone Support Solutions Products & Services Contact NI MyNI
You are here: 
NI Home > NI Developer Zone > NI Discussion Forums


Announcements
The NI Idea Exchange is a product feedback forum where NI R&D and users work together to submit ideas, collaborate on their development, and vote for the ones they like best. View all of the NI Idea Exchanges to post an idea or add your opinion on an existing one today!
zenthoef

Remove Unused Elements for Bundle/Unbundle By Name

Status: Duplicate
by Active Participant zenthoef on ‎03-09-2012 02:19 PM

Sometimes when dealing with the Bundle/Unbundle by Name nodes, I start with more elements than I actually end up using. Then, my block diagram looks something like the following:

 

bundle by name with unused elements.png

Maybe I'm just lazy, but I really hate removing each unused item from the Bundle/Unbundle by Name node over and over. Right click on unused element, click "Remove Element", Right click on next unused element, click "Remove Element", etc... Ugh!

 

So I'm suggesting a "Remove Unused Elements" when you right click on a Bundle/Unbundle by Name nodes. With this option, right clicking on one of these nodes would look like this (emphasis added :smileywink: ):

 

remove unused elements.png

The result of this operation would look something like this:

 

BAM.png

Now I can spend my time coding instead of getting rid of individual elements! :smileyhappy: Thoughts? 

Comments
by Knight of NI ‎03-09-2012 03:23 PM - edited ‎03-09-2012 03:26 PM

This is essentially a duplicate of Bundle Cluster: Remove Unused Inputs although that is talking more about the broken wires on a bundle while this is actual unused elements on bundle by name.

 

Remove Unused Inputs also applies.  But that didn't specifically mention Bundle by Name

by Active Participant X. on ‎03-09-2012 03:43 PM

I have some doubts that the result of the operation will ever lead to nicely aligned wires and objects as shown above. Try to expand a diagram, create a VI, do anything that will result in wires being stretched apart, and NI's cleaning algorithm is going to do its things.

This is thread hijacking if there ever was one, but take a look at this sequence:

 

 

ScreenHunter_002.jpg

 

ScreenHunter_002.jpg

 

ScreenHunter_003.jpg

 

I'll let you guess where the brown wire has disappeared... :-)

 

 

by Active Participant zenthoef on ‎03-09-2012 04:06 PM

I think I'd be fine with the wires being a little messy after this operation. After all, I can just highlight that section of code and perform a selected block diagram cleanup. :smileyhappy:

by Active Participant SnowMule on ‎03-09-2012 06:16 PM

+1 here, though I usually shrink the (un)bundle-by-name object to the smallest and add them in choosing which elements to include as I add them.

 

Another thing, somewhat on the topic of cleaning up bundle/unbundles (same would go for the elements on the side of an event or timed structure), would be the ability to pick up and rearrange the elements inside the object rather than choosing a new element and rewiring it.

by Member MaryH on ‎03-12-2012 03:36 PM
Latest LabVIEW Idea Exchange Blog Posts
About LabVIEW Idea Exchange

Have a LabVIEW Idea?

  1. Browse by label or search in the LabVIEW Idea Exchange to see if your idea has previously been submitted. If your idea exists be sure to vote for the idea by giving it kudos to indicate your approval!
  2. If your idea has not been submitted click Post New Idea to submit a product idea to the LabVIEW Idea Exchange. Be sure to submit a separate post for each idea.
  3. Watch as the community gives your idea kudos and adds their input.
  4. As NI R&D considers the idea, they will change the idea status.
  5. Give kudos to other ideas that you would like to see in a future version of LabVIEW!
Idea Statuses
Top Kudoed Authors
User Kudos Count
126
86
77
67
66
By using this web site, you accept the Terms of Use for this web site. Please read these Terms of Use carefully before using any part of this site. Please go here for information on ni.com's copyright infringement policy.
My Profile | Privacy | Legal | Contact NI © 2011 National Instruments Corporation. All rights reserved.    |    E-Mail this Page E-Mail this Page