LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

three button dialog

Hallo,

I have a short (and simple?) question: How can I create a three button dialog? To analize it, I have the following idea:

I make an 1D-array with the status of each button. Then I search the 1D-array for a "true" (=pressed button). With "select case" I proceed. Does anybody of you have a better idea? How do you like mine?

Thanks for help, Arno

PS: Please send listings with LabVIEW 6.1.
0 Kudos
Message 1 of 4
(2,860 Views)
That will work and prior to 6.1, was probably the best way. With 6.1, you now have the event structure that I think works better. I've attached a snippet of the code in the 3-button dialog that comes with LabVIEW 7 that shows how that is done. The LV 7 dialog also does a lot of nice things like adjusting button size for the text and window size to accomadate those so one more reason to upgrade.
0 Kudos
Message 2 of 4
(2,860 Views)
Hallo Dennis,

thanks for helping. Your idea works, but I need something like a PopUp-window, because my main-VI covers everything.

Can anybody help me with that?

Arno
Message 3 of 4
(2,860 Views)
There's a shipping example called Popup Panel Demo. Open it and then the subVI. The VI description of the subVI Get Operator Info describes the process. Basically, it's VI Properties>Window Appearance>Customize and then select Show Panel When Called and Close Afterwards if Originally Closed. You can do something similar in the main program by right clicking the subVI and choosing SubVI Node Setup.
0 Kudos
Message 4 of 4
(2,860 Views)