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!
Hecuba

Auto Clean Up Wire

Status: New
by Member Hecuba on ‎07-02-2012 02:33 PM

LabVIEW is a “Graphical Programming Language”, it is compiled and executed according to code represented graphically; however, it is possible to have two different codes with the same visual representation but with different behavior.

 

Ex.    Can you tell the difference between the two sections of code below?

 

VI  1:                                                                                    VI  2:

 

Original.JPG                         Original.JPG

                      

The “VI 2” has the second subVI over the error cluster wire without being connected to it, but you cannot notice it unless you move the subVI. Error cluster terminals are recommended; so, you will be able to run the VI with the error cluster terminals disconnected (without having the run arrow broken).

 

VI  1:                                                                                      VI  2:

 

Connected.JPG                         Disconnected.JPG

                   

Suggested Solution:

Perform an “Auto Clean Up Wire” to the wire(s) or wire segment(s) that is under a subVI every time a subVI or function is placed over a wire(s).

 

Clean Up Wire.JPG

 

“Auto Clean Up Wire” when the subVI is released over the wire.

Comments
by Member Hecuba on ‎07-02-2012 02:47 PM

This way you will be able to debug your code a little bit easier.

by Member dj3 on ‎07-03-2012 02:16 AM

I was thinking that it would also be a nice option to be able to insert the function if the wires running underneath are of the same type as the overlying terminals.

by Member Hecuba on ‎07-03-2012 08:00 AM

Hi dj3,  I agree about the auto-insert if the terminals are the same type as the wire underneath.

The idea is that LabVIEW should not allow having wires going into subVI’s or functions if they are not actually connected to them.

by Member rgvdh@rdf on ‎07-03-2012 08:26 AM

"The idea is that LabVIEW should not allow having wires going into subVI’s or functions if they are not actually connected to them."

 

At the very least a wire going under an icon without connecting to it should be visibly different from a wire connected to an icon.  It's not the same logically so it shouldn't be the same graphically.  Maybe little black dots, or a grayed-out effect starting a few pixels out?  How about if the wire layed on top of the icon instead of under it?  I don't know how to do it, but there should be a visible "Hey, these aren't connected, it's just an overlap' type indicator.

by Active Participant Daklu ‎07-03-2012 12:14 PM - edited ‎07-03-2012 12:15 PM

"At the very least a wire going under an icon without connecting to it should be visibly different from a wire connected to an icon."

 

I disagree Labview should prevent wires from being routed under another graphical element.  I do it all the time in situations where routing around the element would make the diagram more complicated.  However, I think the above suggestion is good. 

 

Labview already has a way of showing us crossing wires are not connected.  It inserts a 1 pixel gap between the two wires.  (See case 2.)  Why not simply extend that to vis (and case structures, loops, etc) where a wire appears to enter or leave the element but does not actually connect to it?  (In the example below I increase the gap to 2 pixels to increase visibility.)

 

DisconnectedTerminals.png

by Member Behr-33 on ‎07-05-2012 06:11 AM
Hi, To avoid issues with badly wired wires, and detect them better what about showing the wires OVER the subvis ?
by Trusted Enthusiast on ‎07-06-2012 07:49 AM

VI Analyzer is a tool capable of detecting and pointing out situations like the described one.

I was not aware that Block Diagram Cleanup does not move the functions as such that overlayed wires are still "hidden". So this is either some kind of bug report or you should add VI Analyzer into your toolsuite for capturing issues like this....

 

Norbert 

 

by Active Participant JW-L3CE on ‎07-09-2012 11:09 AM

I don't like the idea of an auto-wire cleanup since you don't always place a VI correctly the first time. Accidentally dropping a VI on an existing mass of wires would be REALLY annoying. Especially if you spent some OCD time making them look nice.

 

I like the idea of having a better visual representation of no connection. Make that an idea!

by Member Hecuba ‎07-10-2012 10:57 AM - edited ‎07-10-2012 10:58 AM

I don't like the idea of an auto-wire cleanup since you don't always place a VI correctly the first time. Accidentally dropping a VI on an existing mass of wires would be REALLY annoying.”

 

I have accidents once in a while but LabVIEW gives the opportunity to “undo” many steps back.

 

I haven’t noticed the gap between not connected crossing wires; I’m used to pay attention to the big dot when they are actually connected. I believe that the small gap may not work to have a clear visual representation of no connection; the wire on top of the icon is better than the way it is right now. I still prefer the “Auto Clean Up Wire”.

by Member Arlon on ‎07-17-2012 01:43 PM

This is similar to the behaviour of structures when they grow. Why not extend that functionality to the whole block diagram?

 

Personally, I am shocked and often very frustrated that Labview even allows code to be covered (try doing that with a text-based language). However, I appreciate there are some people who may choose to do so. In this case, the underlying code could be shown as a lightened colour or grey/black silhouette.

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
129
78
67
65
56
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