LabVIEW Idea Exchange

About LabVIEW Idea Exchange

Have a LabVIEW Idea?

  1. Browse by label or search in the LabVIEW Idea Exchange to see if your idea has previously been submitted. If your idea exists be sure to vote for the idea by giving it kudos to indicate your approval!
  2. If your idea has not been submitted click Post New Idea to submit a product idea to the LabVIEW Idea Exchange. Be sure to submit a separate post for each idea.
  3. Watch as the community gives your idea kudos and adds their input.
  4. As NI R&D considers the idea, they will change the idea status.
  5. Give kudos to other ideas that you would like to see in a future version of LabVIEW!
Showing results for 
Search instead for 
Did you mean: 

Optional (and easily-dismissable) prompt to change newly-dropped case structure frame to FALSE

Status: New

(Note that this idea has already been proposed and auto-declined. So I'm trying again, this time with a different UX, and pictures!)


I've got some code on my diagram:


I need to wrap the code in a case structure, so I do:


Then I connect a Boolean wire to the selector terminal and go on my merry wiring way. Unfortunately, I forgot to consider the fact that I need this code to run in the FALSE case, not the TRUE case. But since nothing is broken in my code, I don't realize my mistake until I start running things. I've made this mistake so many times over the years (the most recent being tonight), that I've decided to propose a solution.


There are plenty of times that I want the wrapped code to be in the TRUE case. There are also plenty of times I want the wrapped code to be in the FALSE case. With no obvious default that makes sense most of the time, here's what I propose:


If you interactively drop a case structure by dragging a rectangle around *existing* code, we float a button over where you let go of the mouse and give you a chance to make the visible frame the FALSE case instead of the TRUE case:


(I suck at Microsoft Paint, I'm sure somebody can come up with a better looking button or glyph)


If you click that button, then the case structure turns to the FALSE case. If you do *anything else*, the button goes away and the case stays TRUE.


With this proposed change, any time I wrap existing diagram code with a case structure, I'll be forced to think about whether the case needs to be TRUE or FALSE. And I'm given an easy out if it's supposed to be the TRUE case.

DNatt, NI
Active Participant

I like it! 

I have also made that mistake many times.

Sam Taggart
CLA, CPI, CTD, LabVIEW Champion
DQMH Trusted Advisor
Proven Zealot

When will the floating button disappear? Obviously after a click, but would it stay there after a save?


EDIT: It disappears when you do "anything else"... Not sure I like that.


I wouldn't mind a way to acknowledge that you want it 'as is'. That way, it can stay there until you either "make case false" or "accept true case". If you don't change it or acknowledge it, it will stay there until you decide.


I have done this too many times!!  And definitely one of the harder things to troubleshoot, as you mentioned.  I like your idea of a quick reminder that will pop up to help ensure we check which case we want.  Reminds me of using the 'Time Delay' function that automatically pops up and allows you to enter another time besides the default 1 second.  I think it wouldn't take much time for the user to click which option and would greatly decrease troubleshooting time.

Trusted Enthusiast

That's an interesting idea! This would be the first "floating button" on the block diagram, correct?

Another option could be to hold down ctrl while clicking on the Case Selector.

Active Participant

What about to colorize false and true cases like error case?

Zafer DEPE
R&D Proje Lideri
Elektronik Müh.
Proven Zealot

I do make this mistake from time to time, but not all that often.  I try to remember to make sure the case is the first thing I configure after dropping a new one.  But honestly I like the subtle reminder of a button just after dropping the case to be like "Hey this is true by the way, click this little button real quick if that isn't what you wanted".  And then I'd prefer it goes away if you interact with something else or on a timer.