LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
Chris V

Diagram Disable Structure More Intuitive

Status: Declined
Functionality already exists and adding more functionality would go against structure paradigm already in place.

The Diagram Disable Structure is not intuitive. As it is, the Diagram Disable Structure is basically a Case Structure; the code in the Disabled case does not run and the code in the Enabled case runs. If I add a Diagram Disable Structure on my block diagram I get this:

 

bad disabled.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

The code I selected is disabled.  Makes sense so far.  If I switch to the Enabled case, I see this:

 

bad enabled.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

AKA, no code will run (because there's nothing in the case).  Again makes sense.

 

Now the problem is if I want to switch between enabling and disabling my code.  I could place the code I want to run in the Enabled case, but then to disable the code I must delete it all.  Or I could delete the Diagram Disable Structure.  But then to re-disable the code I must add the Diagram Disable Structure again.  Confusing to follow and annoying to do every time.

 

I wish it worked like this:

 

I add the Disable Diagram Structure and it looks like this:

 

good enabled.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

If I leave the block diagram looking like this, the code will run as it appears.  However, if I switch the case on the Block Diagram it should look like this:

 

good disabled.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Again, it will run just as it appears (nothing happens because I see no code).  I can put code in this case that I want to run when the other code is disabled, but basically whatever I see on the Block Diagram when I hit run is what will be executed.

 

I understand that this is a little different than most structures in LabVIEW that run the same no matter what you currently see on the block diagram, but it seems to be the only way to make the Diagram Disable Structure intuitive.

Applications Engineer
National Instruments
11 Comments
G-Money
NI Employee (retired)
Status changed to: Declined
Functionality already exists and adding more functionality would go against structure paradigm already in place.