This example uses an Event structure to display a front panel object based on the value of a Boolean control. To view the example, run the VI and Boolean control in the front panel window to make the Random Object indicator appear or disappear. When you press the Stop button, the object returns to its default visible state.
The While Loop includes a Wait function to reduce processor usage, but you can decrease the wait time to increase the response time of the front panel switch.