Admin Production ni-theme
Current Publication

Programming with Radio Button Controls

LabWindows/CVI

Programming with Radio Button Controls

This topic describes how to complete the following tasks programmatically.

Setting and Obtaining the State of a Radio Button

Use SetCtrlVal to set the state of a radio button. Use GetCtrlVal to obtain the state of a radio button.

SetCtrlVal (panelHandle, PANEL_RADIOBUTTON, 1);

GetCtrlVal (panelHandle, PANEL_RADIOBUTTON, &radioButtonVal);

Related Topics

Programming with Controls

Radio Button Control Functions