LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Difference Between GetCtrlAttribute and GetCtrlVal

I was just wondering if anyone could tell me what the difference between the GetCtrlVal function and GetCtrlAttribute (with ATTR_CTRL_VAL) is?  I know that there is a difference between SetCtrlVal function and SetCtrlAttribute, but cannot find any documentation indicating the difference between the "Gets".  I seem to recall that GetCtrlAttribute does not work with some control types, but other that this small difference, are there any advantages to using one over the other?

 

Thanks!

0 Kudos
Message 1 of 2
(3,055 Views)

On the "Get" side, there really is no difference between the two. Also, they should both work on the same exact set of control types.

 

Luis

0 Kudos
Message 2 of 2
(3,049 Views)