LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Control Data Type Documentation?

I may be overlooking the obvious but is there a reference showing the data type for the LabWindows controls? The GetCtrlVal function expects a void pointer to a variable of the data control's type but I could not find a reference showing each control and it's associated data type. Some are obvious but some are not. For instance, a toggle button returns a 0 or 1. Is it a long int , short int, char, unsigned char?
Thanks,
John

0 Kudos
Message 1 of 2
(2,865 Views)
The data type of a control is a property of the control itself that can be set by the programmer or in the UIR.  For most if not all controls you can set the data type they use by clicking on the control in the user interface and setting the type.  You can also change the type programatically during program execution.  You will get a runtime error from GetCtrlVal() if you use a variable data type that is incompatible with the data type of the control.
0 Kudos
Message 2 of 2
(2,853 Views)