Рет қаралды 3,196
Tree Controls in LabVIEW
We can use the tree control to give users a hierarchical list of items from which to select. We can organize the items we enter in the tree control into groups of items or nodes. We can click the expand symbol next to a node to expand it and display all the items in that node.
When we type characters in a tree control at run time, LabVIEW selects the first item in the tree control that begins with the characters we type. We can change the hierarchy of items in the tree control by selecting an item and pressing the period (.) key to indent the current item or the comma (,) key to move the current item to the left. Right-click a tree control and select Selection Mode - Highlight Entire Row from the shortcut menu to highlight the entire row when we select an item.
We configure items in a tree control the same way we configure them in a listbox. We can also change the type of symbol that appears next to each node, and we can configure whether the user can drag and drop items within the tree control.
We can use an Invoke Node to modify items in the tree control and to gather information about items, such as to detect which items, if any, the user double-clicked. When we add an item in the tree control, LabVIEW creates a unique tag for the item. We use this tag to modify items or to gather information about items programmatically. We can right-click the tree control and select Edit Items from the shortcut menu to modify the tags that LabVIEW creates for each item.
Watch the entire LabVIEW tutorial series here;
• NI LabVIEW - How to Us...
Watch the entire TestStand video learning series here;
• NI TestStand Documenta...
#LabVIEW #TreeControls #hierarchicallistofitems