LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

radio button dialog

I dont know, but maybe this is quite easy to do, but i want a dialog when user starts a program and user have to select between:
Pressure,distance travelled and elapsed time.
So only one is possible and then there is box for the value.
Of course, i want to use selected type and value later.

thank you,

jani
0 Kudos
Message 1 of 8
(3,764 Views)
Depending on what verison of LabVIEW you are using you are in luck. LabVIEW 7.1 ships with a radio button control and some shipping example.

Take a look at the Radio Buttons Control.vi example, which uses the selection to change the front panel color. Yours would be the same and you could pass the radio button value out of your VI to the other VIs. To make the VI act like a dialog simmply change the VI Properties>>Window Appearence to Dialog.

Let me know if you have any questions.
Message 2 of 8
(3,754 Views)
i am using 7.0 ... i know there is 2 and 3 button dialog, but if it is not possible, i can use "prompt user for input" , i just leave other values to zero then i make compare.
0 Kudos
Message 3 of 8
(3,754 Views)
A type of radio button exists in versions older than 7.1. If you start the Example Finder and do a search for radio, you'll find a couple of different ways. Also, in examples\general\booleans.llb, you'll find some custom controls (2 Radio Buttons, 3 Radio Buttons), etc) that you can use. These custom controls are really slide controls with text labels and different graphics. Just like LabVIEW 7.1, they enable you to use a radio button control with having to write any code to implement.
Message 4 of 8
(3,743 Views)
You could definetly use the 3 button dialog. It may just depend on the look you want.

There is also a shipping example in 7.0 that shows hot you can build Radio Buttons. Here is the KnowledgeBase that mentions it:
Does LabVIEW Have a Built-In Radio Buttons Control?
Message 5 of 8
(3,739 Views)
Man you beat me by 2 minutes on that one. That will teach me to spell check.
Message 6 of 8
(3,736 Views)
here is some radio buttons



Joe.
"NOTHING IS EVER EASY"
Message 7 of 8
(3,699 Views)
Check out this thread: Is it possible to have mutually exclusive dialog radio buttons?

Regards;
Enrique
www.vartortech.com
0 Kudos
Message 8 of 8
(3,655 Views)