LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
longbow

Shortcut key insert onto wire segment

Status: Completed
Quick Drop Insert (Ctrl-Space, Ctrl-I) respects the selected wire segment in LabVIEW 2013 and later

When using the shortcut for block diagram insertion (ctrl-space, then ctrl-i), the new vi is inserted into the earliest instance of a wire segment, not necessarily the one selected.

 

This is irritating because I often need the vi inserted after the wire is split (thus inserting onto only one branch of the wire).

4 Comments
Darren
Proven Zealot

This is an issue I've been aware of for a while, and it bugs me as well.  🙂  I have two possible solutions:

 

1.  Get a new property on the Wire class that gives me an index of the currently selected segment(s) on the wire, and an additional parameter on the Insert method to specify which segment to perform the insert on.

2.  Get the selected segment, delete the wire, drop the node, then rewire the source of the segment to the dropped node, and the output of the node to all the previously connected sinks.

 

(1) is the cleaner solution, but I can't do it by myself.  (2) is difficult, would require a much larger testing burden, and would probably result in wires not looking the same as they did before the insert.  Either way, I hope this idea gets more kudos so it will be prioritized for a future LabVIEW release.

Darin.K
Trusted Enthusiast

3. Make the native insert algorithm more intelligent to handle this case, ie. this idea: http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Multiple-Wire-Insert/idi-p/958584 That idea is already declined which I personally feel is a bit silly. QD IMO is a tool for providing "workarounds" and personalized shortcuts in lieu of a built-in implementation. It is not a means of adding basic functionality. In this case it functions just well enough to make me want the multiple wire insert feature, but not well enough to use this shortcut on a routine basis. It is a good proof of principle. (Edit: Firefox is eating my linefeeds today).

Darren
Proven Zealot

@Darin.K wrote:

 

3. Make the native insert algorithm more intelligent to handle this case, ie. this idea...


Native insert (i.e. right-click > Insert) works just fine for inserting on a segment, which is what longbow's idea is about.  It sounds like he's specifically asking for Quick Drop insert to work better, which is the issue I addressed in my reply.  Native multi-wire insert is a different issue.

Darren
Proven Zealot
Status changed to: Completed
Quick Drop Insert (Ctrl-Space, Ctrl-I) respects the selected wire segment in LabVIEW 2013 and later