LabVIEW Idea Exchange

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

Invertable case selector

Status: Declined

Any idea that has received less than 2 kudos within 2 years after posting will be automatically declined. 

Hi,

 

Sometimes I end up with a double negation when selecting in a Boolean case structure:

 

Double negation.png

 

Double negations are notoriously hard to understand and thus a source of misunderstandings. Therefore I most often eliminate such double negations by dropping in a Not operator:

 

No negation.png

 

For these situations it would be nice to be able to invert/negate the case selector by right clicking on it, just as with several of the built-in Boolean functions:

 

NegateCaseSelector.png

 

I'm not concerned about performance, as I'd expect the compiler to compile the bottom two cases equivalently. It's more that you're forced to move nodes about less in the suggested case, if you find that you have to negate the case selector.

 

The drawback obviously is that you move away from the expected behavior of a case structure, but I think it's a small tradeoff. There are many good ideas floating around the Idea Exchange which touches on the subject of negating Boolean inputs that you currently cannot negate, but I couldn't find one that suggests negating the case selector, and I have needed that many times...

 

Cheers,

Steen

CLA, CTA, CLED & LabVIEW Champion
11 Comments
TomOrr0W
Member

Looking at the comments on this idea, I ended up searching invert, negate, bubble, and circle (skipping anything that was already marked duplicate).  I figured I might as well link the related ideas.

 

Strongly Related:

https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Invert-Option-in-all-Boolean-Terminals/idi-p/1281058

https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Negate-input-on-boolean-functions/idi-p/1084159

https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Array-String-not-empty-function/idi-p/3163821

 

Related:

https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Shortcut-to-Invert-Input-Output-in-Compound-Arithmeti...

https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Correct-the-quot-not-quot-symbol-by-removing-the-inve...

https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Automatically-invert-compound-arithmetic-inputs-when-...

https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Invert-signal-going-into-a-select-VI/idi-p/2224232

https://forums.ni.com/t5/LabVIEW-Idea-Exchange/General-Comparison-Operator-as-an-Express-VI/idi-p/12...

https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Simplifying-Boolean-expressions/idi-p/1890963

https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Offer-a-Positive-Logic-Alternative/idi-p/1022834

https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Negate-option-on-Comparison-functions/idc-p/3793254

 

A couple people mentioned making inversion bubbles more visible:

https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Enlarge-the-Invert-Circles/idi-p/1023748

https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Replace-the-Invert-Circles-in-Compound-Arithmetic-Nod...

https://forums.ni.com/t5/LabVIEW-Idea-Exchange/Compound-Arithmetic-with-inverted-input-should-be-eas...