Admin Production ni-theme
Current Publication

Programming with Toggle Button Controls

LabWindows/CVI

Programming with Toggle Button Controls

This topic describes how to complete the following tasks programmatically.

Setting and Obtaining the State of a Toggle Button

Use SetCtrlVal to set the state of a toggle button.

SetCtrlVal (panelHandle, PANEL_TOGGLEBUTTON, 1);

Use GetCtrlVal to obtain the state of a toggle button.

GetCtrlVal (panelHandle, PANEL_TOGGLEBUTTON, &toggleButtonVal);

Related Topics

Programming with Controls

Toggle Button Control Functions