Hello vakost;
A few points:
- The mechanical action of your Boolean is set to "Latch when Released". This means it will reset to False after being read once.
- You have no software control timing in your loop, this is what's known as a "greedy loop" and will execute as fast as it possibly can
Due to this, your True case will execute, but only once when you release the button, and the button will be reset to False before you likely see it because the loop is probably running many thousands of times per second. If you turn on execution highlighting to slow down the VI's execution to something you can observe, you should see the Boolean indicator turn on briefly before resetting. You should still place a wait function inside your loop to slow things down to a reasonable speed, however.
A few other tips:
- You don't need to place the Boolean indicator inside the case structure if you want to update it in either case (you're using a value property node in the other case) - just place it outside the structure and wire the value you want to set out of the case
- You've created a while loop with no stop condition, and the VI has to be aborted to stop it. Generally you'll want to give the user a stop button to exit the VI, aborting is almost never a good idea.
Regards,
- You don't really need the case structure in this circumstance, you could just wire the Boolean OK button directly to the indicator. My impression is that this is just a demonstrative example or experiment in how case structures work, though, so that's probably alright.
Hope that helps!