LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Ringcontroll from a tab

Hello,
 
ich have a tab with 6 tab-screen.
I have a ringcontrol on the second tabscreen.
But i can not read the value from the controll.
But the function from a button ist o.K..
That ist wrong?
 
thanks
 
 
0 Kudos
Message 1 of 2
(2,865 Views)

Hello,

To read the value from a ring control, use the function GetCtrlVal (tab_panel, ring_control, &value), which is used to get the value of almost any control type.

I understand that you are using Tabs. If you use the new Tab Control from CVI8.0, you have to get a handle for the tab page before you can access a control on this tab page. To do so, use the function GetPanelHandleFromTabPage (panel, tab_control, tab_index, &tab_panel). Now you can use the returned value of tab_panel in the GetCtrlVal function.

Success,

Wim

0 Kudos
Message 2 of 2
(2,850 Views)