From Friday, January 17th 11 PM CDT (January 18th 5 AM UTC) through Saturday, January 18th 11:30 AM CDT (January 18th 5:30 PM UTC), ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Quick Drop Enthusiasts

cancel
Showing results for 
Search instead for 
Did you mean: 

Replace and Insert With Select a VI

Has anyone thought about implementing the feature, where you can insert, or replace a node on the block diagram, with one from a browse dialog?

So lets say I select a subVI on my palette, and I want to replace it with another subVI on disk, but not in my palette.  Right now the only option is to right click >> Replace >> All Palettes >> Select a VI... then browse to the file on disk.  What would speed this up is CTRL + P type "Select a VI..." (or "sav") then pick the file.

I would hope insert could work the same way.  And this could be used to replace multiple subVIs, or insert multiple subVIs, just like CTRL + I and CTRL + P supports on normal functions on the palette.

And if someone hasn't done this and wants a challenge, I recommend the starting point be these improved Replace from Clipboard and, Insert from Clipboard

0 Kudos
Message 1 of 9
(9,555 Views)

I would virtually kill for this feature. Even just moving the Select a VI menu to just under the Replace menu would be awesome.

0 Kudos
Message 2 of 9
(6,104 Views)

Ctrl-I and Ctrl-Shift-I already work with 'Select a VI...'. I've often wanted Ctrl-P to work with it as well, I'll take a look this afternoon and see what it would take.

0 Kudos
Message 3 of 9
(6,104 Views)

I've posted a prototype of the Replace shortcut with this functionality here. Please try it out and let me know what you think. I'd like to include this functionality in LabVIEW 2015.

Message 4 of 9
(6,104 Views)

I love it - and humbly request inclusion in 2015. Also default object short-cuts wouldn't go amiss - saves from configuring them again with every installation.

0 Kudos
Message 5 of 9
(6,104 Views)

Awesome Darren.  Few comments.  So the replace QD you posted works great, but I'm going to mention again how much I love the replace from Clipboard and how I'm going to have to try to merge these two, but I understand why you might not want to post an improvement on someone elses code.  Being a representative of NI, I suspect you can't just take someone elses code, change it and then recommend using it.  Still I love both of these features and want them together.

Secondly I noticed the insert doesn't work quite as expected for CTRL + I, when multiple wires are selected.  Not sure where to best voice the issue I saw.  Lets say you have two error wires selected, and you want to insert a subVI on each of them.  If the function is in the palette you can type it and press CTRL + I and a copy will be inserted on each wire.  But if you have both wires selected, then type "sav" and CTRL + I and pick the file, it will insert it on the first wire, then prompt you again for another file to insert on the other wire.  I'd expect it to work like the normal insert, where the same VI is inserted on each wire and only be prompted once for my file selection.

Note that this is how the improved replace function you posted earlier works, where it replaces the selected nodes with a copy of the VI selected from the dialog.

0 Kudos
Message 6 of 9
(6,104 Views)