RUVIDEO
Поделитесь видео 🙏

LabVIEW - Creating a Tree Control

📁 Обучение 👁️ 22 📅 03.12.2023

LabVIEW - Creating a Tree Control

We can use the tree control to give users a hierarchical list of items from which to select. We organize the items we enter in the tree control into groups of items, or nodes.

Follow these steps to create a tree control.

Add a tree control to the front panel.

We can use the Labeling tool to enter an item name in the tree control and press the Enter key. LabVIEW creates a unique tag for the item. The default tag is the text in the first cell that contains text, starting from the left. If an existing tag already uses that string, LabVIEW appends a number to the string to create a unique tag for the new item. We use this tag to modify items or to gather information about items programmatically.

Repeat previous steps for each item we want to enter. LabVIEW creates each new item at the same hierarchical level as the item above it. If there is no item above the new item, LabVIEW creates the item at the topmost hierarchical level.

Set the hierarchy of the items in the tree control by indenting items.

We can configure the tree control. We can add symbols and edit, disable, and delete items in a tree control. We can also set the expand/contract symbol type, case sensitivity, and item dragging for a tree control.

We can set the number of items a user can select in the tree control.

We can create a Case structure to handle the selected item. A tree control with a selection mode set to 0 or 1 Item or to 1 Item appears on the block diagram as a string. We can right-click a tree control on the front panel and select Selection Mode»Data Type from the shortcut menu to change the data type. The data value for a single-selection tree control is the unique tag of the currently selected option. If no item is selected, the value is an empty string.

A tree control with a selection mode set to 0 or More Items or to 1 or More Items appears on the block diagram as an array of strings, where the value(s) in the array represent the currently selected item(s). If no item is selected, the value is an empty array.

We can also use the TreeControl methods to add items to a tree control programmatically.

Watch the entire LabVIEW tutorial series here;
https://www.youtube.com/watch?v=Sr0xYsHHYUo&list=PL741D36B501D4AC78

Watch the entire TestStand video learning series here;
https://www.youtube.com/watch?v=8w2S80ZrwHQ&list=PLOO4qYU7-Ve4MgIJvFb7QPvCgQbTzlrhj

Get more LabVIEW Tutorials for free!!!
https://www.youtube.com/channel/UCXzPblvs3_HorutUt8oQ-tA?sub_confirmation=1

#labview #labviewtutorial #labviewListboxesTablesTreeControls

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «LabVIEW - Creating a Tree Control», вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.