|LabVIEW 2016 Help|
|LabVIEW 2017 Help|
|LabVIEW 2018 Help|
|LabVIEW 2019 Help|
|LabVIEW 2020 Help|
Use XControls to design and create complex controls and indicators in LabVIEW.
|Note You can create and edit XControls only in the LabVIEW Professional Development System. If a VI contains an XControl, you can run the VI in all LabVIEW packages.|
When you create an XControl, you combine built-in LabVIEW controls and indicators to take advantage of the combined functionality of the built-in LabVIEW controls and indicators. Unlike custom controls, which you use to create custom user interface components that vary cosmetically from built-in LabVIEW controls and indicators, XControls have dynamic run-time and edit-time behavior that is defined by VIs that run in the background. When you use an XControl in a VI, the block diagram for that VI is simplified because the XControl includes the behavior of the control.
When you create an XControl, you use the Project Explorer window to edit the XControl library. The XControl library contains all of the components of an XControl. A typical XControl consists of abilities, properties, and methods. XControl abilities are components of the XControl that the XControl requires to function properly. Required abilities define the appearance, data type, display state, and initialization of the XControl. An XControl can have additional, optional abilities. The Select Ability dialog box lists and describes all required and optional abilities that are applicable to the XControl. The XControl properties and methods allow the user of an XControl to configure the control programmatically. Creating properties and methods for an XControl is optional.
Refer to the Simple Dual Mode Thermometer XControl project in the labview\examples\Controls and Indicators\XControls\Dual Mode Thermometer directory for an example of using XControls.