LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
தமிழ்நேரம்

Copy paste of VIs on the block diagram for replacing the missing VIs

Status: New

if a control definition is missing we can replace the new control by coping the new control to clip board and pasting on top of the control. This preserves the wiring of the control on the connecter pane.

 

Similarly we can have the option to replace the missing VIs (?) by coping the new VIs in the clipboard and pasting it or

add an option on in the replace menu like replace from clipboard, and it will preserves the connections.  

அன்புடன்
தமிழ் நேரம்
முதல் இந்திய ஆய்வுமெகபொப சிற்பி
சோதனைநிறுத்தம் சிற்பி
மற்ற சான்றிதழ்கள்
யாதும் ஊரே! யாவரும் கேளிர்!!

6 Comments
AdamKemp
NI Employee (retired)

We already give you the option to choose a new VI on load if we can't find the right VI. That's a more global way to do what you want to do, rather than replacing each individual missing subVI call separately. Is there a reason that you don't want to do it that way?

RavensFan
Knight of NI

I think it is a logical case that you just want to get things loaded and see what's in there without designating all the VI's to search for at the beginning.  You may not even know which VI is the correct one until you see it in context of the code.  This way you can go through and look at the code, hunt down the correct subVI (you may have several due to tests or renamed VI's or linkages you've corrupted).  And to have a method to more easily to do a copy and replace rather than doing a Right click, replace, Select subVI, and then having to pick it out of the directory again and again for each one would be nice.

AdamKemp
NI Employee (retired)

We also have QuickDrop replace in 2010. Select the subVI call, press Ctrl+Space, type in the name of the VI you want to replace it with (it must be in memory first), then once it's selected press Ctrl+P. That's not quite as fast as what you suggested, but I used it recently and it worked pretty well.

AristosQueue (NI)
NI Employee (retired)

Correct me if I'm wrong, but in the project tree, I believe you can pop up on a missing subVI (it may be listed in the Dependencies section) and select "Find on disk" and then pick the VI you'd like to replace with and all the VIs in your project link to the newly chosen VI. I'm not sure if that feature actually exists, but I'm pretty sure it got prototyped and it may have shipped with LV 8.6 or 2009.

AdamKemp
NI Employee (retired)

I couldn't find that option, but you can right-click a VI (missing or not) in the project tree (even under Dependencies) and choose "Replace with...". Missing VIs show up with an exclamation point glyph.

 

Although it would be nice for copy/paste to do something useful for replacing a subVI, we already have 3 other ways of doing what you want to do. That makes it a lot harder to justify spending time on it.

550nm
Member

This used to be the default behavior of LabVIEW. You could Cntrl-C to copy an existing VI on diagram, left-click on target VI and Ctrl-V to replace it on diagram. (You might have to go back to LabVIEW 7 or 6 to see this in action).

 

I know there are work arounds. Like close everything, rename the one to be replaced, open the top level and point to the new VI when the old one isn't found.

 

Considering that a VI has to have a path before it can be "selected" and copied by Ctrl-C, and considering that the only thing accomplished by Replace\Select a VI is to identify a path to the replacement VI, why can't we just have the old convenient ability to copy/paste?