LabVIEW Idea Exchange

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

Ability to Diagram Disable ("Comment Out") a single Event Case in Event Handler Structure

Status: New

It would be useful to be able to disable the handling of a single Event Case in an Event Handler Structure. Note that this is distinctly different from merely Diagram Disabling the contents of the Event Case; using that method, the Timeout event case will be reset, and additionally program execution will continue past the Event Handler Structure (in the example below, continue to the next iteration in the While Loop).

 

Here's an example of what a Disabled Event Case might look like - the Event Structure and contained code is "washed out" as if Diagram Disabled - additionally, the disabled event in the list of Event Cases is struck-out and in italics:

DiagramDisabledEventHandlerCase.png

 

And here's a proposal for how one might disable a given Event Case, using the context menu that pops up by right-clicking the border of the Event Handler Structure:

 

HowToDisableAnEventCase.png

11 Comments
dthor
Active Participant

I think I would be more comfortable with the code being washed out and a line through the event selector terminal. (Perhaps even adding a diagonal line across the event code.) With the original implementation, a quick glance at the Event Structure looks like the entire thing is inside a Diagram Disable Structure. I know I would get confused with that.

 

The other advantage of having the strike-through text in the case selector terminal would be that you can select the terminal dropdown and see all events that are disabled.

 

Instead or a strike-through, or in addition to, you could also have the case selector colored differently. I personally would like just the strike-through text.