04-12-2012 03:00 PM
This Quick Drop Keyboard Shortcut combines the functionality of the Insert and Replace shortcuts into a single shortcut. If your selection contains any wires, it will perform a Quick Drop Insert. Otherwise, it will perform a Quick Drop Replace. Follow these steps to use this shortcut:
This shortcut works in LabVIEW 2011 and later. It was inspired by this discussion on the LabVIEW Idea Exchange.
04-12-2012 03:17 PM
First, thanks - this will be helpful when it's debugged. QD is a double-edged sword: Keyboard access makes QD really accessible, but means that I have to choose which commands I want to remember (which would be easier if I were coding every day). Combining Insert and Replace puts Ctrl-W near the top of my list (second to Remove and Rewire).
That said, there appears to be a bug: if multiple wires are selected, Ctrl-W wires the specified node into each one. And, the nodes are overlapped so you can't tell that's what happened.
1) Drop nodes and wire them up:
2) Highlight wires, Ctrl-Space, type "Read from Binary File", Ctrl-W:
3) Move the inserted node down to reveal second inserted node:
-Jason
04-12-2012 03:45 PM
That's how Quick Drop Insert normally works. To insert a single item on multiple selected wires, you would press Ctrl-Shift-I (or in the case of this new shortcut, Ctrl-Shift-W).
04-12-2012 03:50 PM
Ah - that's nice. (Did I mention that I don't code every day these days?)
04-12-2012 04:17 PM
Darren, it would be nice if you tiled the nodes after inserting on each wire so the operator can see the effect of their (possibly incorrect) keystroke. Here's an example with the second item bumped 5 px down and to the right from the first item's location.
04-12-2012 04:25 PM
DavidStaab wrote:
Darren, it would be nice if you tiled the nodes after inserting on each wire so the operator can see the effect of their (possibly incorrect) keystroke.
That's not a bad idea. If a regular Quick Drop Insert created multiple objects, and their positions are exactly the same, tile them. I'll see what I can do.
04-12-2012 04:42 PM
Uh....how do I install this?
04-13-2012 09:32 AM
Did my instructions in the original post not work for you? Saving the VI in your plugins folder should be all you need to do. If it's not working, maybe you have the default shortcut key (W) already assigned to another shortcut? You can click the "Shortcuts" button in Quick Drop, then go to the "Ctrl-Key Shortcuts" page, to see what your current key assignments are.
04-13-2012 10:06 AM
Oh jeez. My brain somehow completely glossed over step 1. Sorry!
04-13-2012 11:58 AM
Darren wrote:
That's not a bad idea. If a regular Quick Drop Insert created multiple objects, and their positions are exactly the same, tile them. I'll see what I can do.
Barring any unforeseen catastrophes, this improved tiling of multiple inserted objects (with Quick Drop) will be in LabVIEW 2012.