From 11:00 PM CST Friday, Apr 11th - 1:30 PM CST Saturday, Apr 12th, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabWindows/CVI

Content Type
Programming Language
Current manual
Table of Contents

Programming with Radio Button Controls

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

Was this information helpful?

Help us improve your future ni.com experience.

Did you find the documentation you were looking for?

Submit