LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

PopUp menu part III

Hallo,

I want to create a popup-menu looking like the one in the attached file. It is almost finished, exept for one thing:

The upper two buttons are working just the opposite way I want. Pressing one should deactivate the other one. But now it activates the other one by deactivating the first one.

I think I have to negate something, but all my tries were unsuccessful.

Can anybody help? Btw, I use LabVIEW 6.1.

Arno
0 Kudos
Message 1 of 7
(3,146 Views)
Hello Arno,

instead ot the Negate you could use case statements with constants wired to the components of the cluster (like If Empty cyl. then sample=FALSE).

You can also use just one switch for both measurement modes. See the attached example. By using an enum you can easily extend this to more than two modes.

Best regards,
GerdW
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 7
(3,146 Views)
Hello Arno,

example converted to Lv6.1 ...

Best regards,
GerdW
Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 3 of 7
(3,146 Views)
Hallo Gerd,

good idea. How did you realize that button? I can't find it ...

Arno
0 Kudos
Message 4 of 7
(3,146 Views)
Arno,

Notice that the cancel button only cancels the last action...

Regards,

Wiebe.

"GerdW" wrote in message
news:5065000000050000005FBA0100-1079395200000@exchange.ni.com...
> Hello Arno,
>
> example converted to Lv6.1 ...
>
> Best regards,
> GerdW
0 Kudos
Message 5 of 7
(3,146 Views)
The button has the boolean text visible (see gif). Right click any boolean and you can get labels for the on and off states.
Check out LV help under 'Boolean controls and indicators>labeling buttons'.
=====================================================
Fading out. " ... J. Arthur Rank on gong."
0 Kudos
Message 6 of 7
(3,146 Views)
I think you can do the whole thing a lot simpler using an event structure. You might also want to look at the radio button controls in \examples\general\controls\boolean.llb.
0 Kudos
Message 7 of 7
(3,146 Views)