LabVIEW Idea Exchange

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

Replace Case Structure and Connect Wires with CTRL+V

Status: Declined

Any idea that has received less than 2 kudos within 2 years after posting will be automatically declined.

On LabVIEW Front Panels, you can select a control and use CTRL+V to replace it with one from the clipboard. When you use this technique the new control keeps the connection on the connector pane, block diagram terminal and any references from the old control. It would be nice to have this kind of behavior with case structures on the block diagram.

 

You could then copy a case structure to the clipboard, select a different case structure in your code and press CTRL+V to replace it. The old case structure should be replaced with the new one in the same position and all of the wires connected.

 

The included springboard demonstrates the idea for top level case structures.

4 Comments
RavensFan
Knight of NI

Your statement in the first paragraph is interesting to me.  I didn't realize you could do a paste operation that would replace a currently highlight control.  Though in general, I probably wouldn't need to use that often enough to be able to remember it.

 

Extending that idea to case structures is an entirely different matter.  A one for one control replacement seems straight forward.  Having a case structure for case structure replacement and expecting all wires to be connected in the same position is very complicated.  How likely is it that the case structures would be similar enough that LabVIEW could figure out how to make this connections?  I think you'd wind up with a broken mess of wires.

 

PS.  What is the "Included springboard" you are talking about?

Darin.K
Trusted Enthusiast

This is a subset of the following idea which wants paste-replace to work on the BD the same way it does on the FP:

 

http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Copy-and-Paste-Replace/idi-p/1650586

 

muks
Proven Zealot

You could then copy a case structure to the clipboard, select a different case structure in your code and press CTRL+V to replace it. The old case structure should be replaced with the new one in the same position and all of the wires connected.


 

 

I will be the first one to mess it  and misuse it.

 

Spoiler
After a little thought. YEah surely i will
Darren
Proven Zealot
Status changed to: Declined

Any idea that has received less than 2 kudos within 2 years after posting will be automatically declined.