LabVIEW Idea Exchange

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

Enable Diagram (or Inverse Disable Diagram)

Status: New

This suggestion is to have an "inverse" Disable Diagram or an Enable-this-part-of-the-code-only Diagram (it would have to have a better name than that :)). This feature would let you disable all your other code except for what's inside this structure. I think it'd be useful in troubleshooting and focusing in on parts of code.

9 Comments
JackDunaway
Trusted Enthusiast
I really like this idea, Kudos.
altenbach
Knight of NI

All we need is the group/ungroup and lock/unlock feature that exists on the front panel also available for the diagram.

 

It's already there, but greyed out! 😞

Intaris
Proven Zealot
Interesting Idea.  Kudossed (!?)
Sima
Active Participant
altenbach, since the lock/unlock on the front panel is related more to aesthetics, I think it would be confusing to use them for this specific suggestion. Sure, we could have the lock/unlock in the block diagram to keep things from shifting around, but they wouldn't - rather, I'd prefer that they didn't - change the functionality of the code. That should be called something else (something like enable/disable code).
altenbach
Knight of NI

Ah, sorry. I guess I did not understand the suggestion. I thought you wanted to lock certain parts to prevent accidental editing.

 

I don't see how an enable structure should deal with input and outputs (wires that cross the structure boundary). Unless all relevant controls are inside the structure, it would be pretty useless. 😉

Sima
Active Participant

It would just be similar to the Disable Diagram, where you can define alternate code in the diagram that's enabled, here, you would also be able to have other code including controls and indicators.

Chris_in_Colorado
Member
weird, but I like it!
JackDunaway
Trusted Enthusiast

My very first comment was vague: here's why I like it.

 

When I'm working on a UI front panel, I could have a pretty large block diagram. Oftentimes I want to run a few property nodes to get some controls in order, so I will drag a Diagram Disable around the entire diagram except for the few property nodes and run the diagram. In a fraction of a second, I have the desired properties, and I'll delete the PN's and remove the Disable Structure from the entire diagram. This idea would make that process faster.

 

This is also the only method I am aware of to GET the values of some properties (say, for creating BD constants), in addition to the SET method above.

muks
Proven Zealot
Nice idea kudos. Got to see this from this idea