LabVIEW Idea Exchange

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

include or exclude code in loop

Status: New

Usually I have code inside a loop (e.g. a while loop) that later I need to put outside (or viceversa).  I need to drag the code outside the loop and re-wire the cables. 

It would be great if some shortcut, for example ALT-drag, allows me to drag the code maintaining the cables wired.

 

alt drag maintaining cabling.png

 

And If there were not cables before, creating automatically the tunnels.

 

alt drag creating cabling and tunnels

NI Distributor Ecuador
CLD + CPI
5 Comments
RavensFan
Knight of NI
Manzolli
Active Participant

I do think the general idea in both cases is "move things through structures borders" keeping the current connections" right?

André Manzolli

Mechanical Engineer
Certified LabVIEW Developer - CLD
LabVIEW Champion
Curitiba - PR - Brazil
San_Orellana
Member

Right: the idea is to minimize re-cabling when moving things across structure borders.  And yes, it's a duplicate of Ability to Move the control/indicator/function out of the loop/structure without breaking wire

NI Distributor Ecuador
CLD + CPI
altenbach
Knight of NI

How about the opposite with a similar result in the end: The ability to move structure boundaries while leaving the code in place?

 

For example in the above case, moving the left loop boundary to the right past the desired portion while holding down e.g. <alt> could give about the same effect if implemented.

 

Sometimes I place a loop around existing code, just to notice that the loop includes slightly more or less code than desired. Instead of "undo...place it again", this would allow me to surgically <alt>-move each boundary until it separates the originally intended code parts. This would also make it easier to place a loop around code that is bigger than the current diagram window.

Manzolli
Active Participant

In the case presented by San_Orellana, altenbach's idea works better because it minimizes the reorganization work (even though we can't see the entire left border of the loop). In a case with more wires relative different kind of data (file, data acquisition and a queue) may be easier move a block across the border. It would be nice to have both possibilities implemented.

André Manzolli

Mechanical Engineer
Certified LabVIEW Developer - CLD
LabVIEW Champion
Curitiba - PR - Brazil