LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
oskretc

Adding the ability to Fold and Unfold code in some structures

Status: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined. 

 

Adding the ability to fold and unfold some code in structures like case and perhaps other structures might be a good idea when you have code or wires that you know will not change on several cases.

 

This is implemented succesfully in text base editors when you can fold "hide" functions or statements

 

 

 

 

Unfolded (normal)

unfolded.png

 

 

Folded, connections still there.

folded.png

 

4 Comments
RavensFan
Knight of NI

Similar to this idea.   Allow Hide/Unhide of code inside Block Diagram, without using SubVI

 

I would have said "duplicate", but this idea shows a slightly different implementation of the code hiding.  However, I would not be in favor of this idea.  It is very hard to delineate between the shown code and the hidden code.  At first glance, it looks like unwired tunnels on the right.  I don't want to have to find the hidden code by looking in a plus sign hidden in the corner of the case structure.

 

If the concern is just about hiding unused wires, there are numerous other idea in the Exchange discussing how to hide or "tunnel" wires.

 

Take a look at:

A better way to define the output of unwired output tunnels

Allow Output Tunnel of Case Structure to Use Previous Value if Unwired (Latch)

wire jumping across case structure

X.
Trusted Enthusiast
Trusted Enthusiast

try a Sequence Structure in the background, like this.

garrettmarsh
Member

On a side note, I'll recommend caution about use of the term "folding" when talking about LabVIEW, to prevent confusion:

http://www.ni.com/newsletter/50347/en/ 

Darren
Proven Zealot
Status changed to: Declined

Any idea that has not received any kudos within a year after posting will be automatically declined.