LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to check the Tree and organize a loop?

Hello, I am a beginner in LabView, maybe I am asking an easy questions, but please answer if you have solution.

 

I have a tree in my program. I have difficulties with the following:

1. I need to check the elements of tree with their corresponding item symbols. For example, I need to check
    if Item1A is marked or not and, depending the result, do some operations.

2. Each child element of the tree must realize some command line command. Is it possible to do all commands automatically, by    
    pressing START button? The program will check if the Item1A element is marked and do the corresponding command,
    then after finishing it will check the Item1B, ... . Can I organize a loop to pass through all child items?


Thanks

0 Kudos
Message 1 of 3
(2,388 Views)

Hi Tar81,

 

you can iterate the "Active Item" to get associated tree item "Symbol". Then check the item symbol and decide if it is marked or not. If marked, call its command line command.

 

In my example code i set symbol index <38> as checked status. Hope that can help you.

Regards
MY
0 Kudos
Message 2 of 3
(2,364 Views)
I tried and it in my program worked. Thanks a lot
0 Kudos
Message 3 of 3
(2,347 Views)