Download LabVIEW Upgrade Notes Version 8.0
Transcript
You also can right-click a control and select Advanced»Run-Time Shortcut Menu»Disable from the shortcut menu to disable the run-time shortcut menu on a control. You can disable default shortcut menus for all controls by selecting File» VI Properties, selecting Window Appearance from the Category pull-down menu, clicking the Customize button, and removing the checkmark from the Allow default run-time shortcut menus checkbox. If you disable default run-time shortcut menus, you still can include custom shortcut menus. Using XControls Use XControls to design and create complex controls and indicators in LabVIEW. XControls include the following features: • You can combine built-in LabVIEW controls and indicators to create an XControl to take advantage of the combined functionality of the LabVIEW controls and indicators. • 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. • Use an XControl library to define the behavior, appearance, abilities, properties, and methods of an XControl. • You can customize the shortcut menu for an XControl to include new menu items and the existing menu items of the built-in LabVIEW controls or indicators that you used to create the XControl. In the Project Explorer window, right-click My Computer and select New»XControl from the shortcut menu to create an XControl. 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. Refer to the Simple Dual Mode Thermometer XControl.lvproj in the labview\examples\general\xcontrols\Dual Mode Thermometer directory for an example of using XControls. Using .NET Controls You can use .NET controls on the front panel as you do ActiveX controls. Create a new control in a .NET container or add .NET controls to the Controls palette for later use. On the block diagram, wire the .NET control to a Property Node, Invoke Node, or Register Event Callback node to set properties, invoke methods, or handle events for the control. To create a new .NET control, place a .NET container on the front panel. Right-click the .NET container and select Insert .NET Control from the © National Instruments Corporation 73 LabVIEW Upgrade Notes