LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PopUp menu part II

Hallo,

I want to create a popup-menu looking like the one in the attached file:

The upper two buttons are required to press (exactly one of them; activating the second one should deactivate the first), the next two (always and subtraction) are optional. With "OK" (lower left) a upcoming VI should be started, with "Cancel" (lower right) the VI stops.

As a hint from someone in the forum I use a cluster. After staring the VI the following message occurs:

"If a Boolean control has associated local variables, it may not use Latch mechanical action. The first local variable to read a Boolean control with Latch action would reset its value to the default."

What does that mean and how can I fix that? If you have ideas to finish my program
, carry on. Btw, I use LabVIEW 6.1.

Arno
0 Kudos
Message 1 of 2
(2,581 Views)
OK and Cancel buttons use the Latch mechanical action. They change to TRUE when you click on them, but change back to False as soon as the vi execution reads the values, self reseting. So a local variable (your cluster local variable) would not contain the correct state. It would read a TRUE value, and the action of reading would reset it back to FALSE because of the nature of the latch mechanical action. The fix is to remove the OK and Cancel buttons from the cluster. Put them outside the cluster. You will have to delete the cluster constant on your block diagram and then recreate it with only four T/F constants.
- tbob

Inventor of the WORM Global
0 Kudos
Message 2 of 2
(2,581 Views)