Company Events Academic Community Support Solutions Products & Services Contact NI MyNI

Creating a Radio Buttons Control

LabVIEW 2013 Help

Edition Date: June 2013

Part Number: 371361K-01

»View Product Info

Complete the following steps to create a radio buttons control.

  1. Add a radio buttons control to the front panel window.

  2. (Optional) Add additional Boolean controls to the radio buttons control.



    You also can clone an existing Boolean control in the radio buttons control.
  3. (Optional) Configure the radio buttons control by right-clicking the control and selecting from the following items in the shortcut menu:
    • Allow No SelectionGives users the option of selecting none or one of the Boolean controls in the radio buttons control.
    • Mechanical Action—Sets the mechanical action for the radio buttons control to Switch When Pressed or Switch When Released. You cannot set the mechanical action for individual Boolean controls in the radio buttons control.
  4. Use the Labeling tool to edit the label of each Boolean control in the radio buttons control. Each Boolean control must have a unique label. If you selected the Allow No Selection option and you create a label of No Selection for a Boolean control in the radio buttons control, the VI returns a broken Run button.
  5. Create a Case structure to handle the item the user selected in the radio buttons control. A radio buttons control appears on the block diagram as an enumerated type. If no item is selected, the numeric value of the radio buttons control is 0, and the string value is No Selection.

You also can use the Allow No Selection property to give users the option not to select any Boolean control in the radio buttons control programmatically.

Refer to the following VIs for examples of using a radio buttons control:

  • Radio Buttons VI: labview\examples\Controls and Indicators\Boolean


 

Your Feedback! poor Poor  |  Excellent excellent   Yes No
 Document Quality? 
 Answered Your Question? 
Add Comments 1 2 3 4 5 submit