LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tree Control Double Click Functionality

Solved!
Go to solution

Hi All,

 

I'm trying to get a tree control to operate a case structure, and I cannot seem to get the Double Click invoke node to output my tags from the tree.   Anyone know what I may be doing wrong?!

 

Thanks,

Derek

0 Kudos
Message 1 of 10
(3,779 Views)

When I change the True to Base Rating_1, I was able to get it to actuate.  You might want to put a 100ms delay in the while loop so that you see the text in the double click text messge.

0 Kudos
Message 2 of 10
(3,776 Views)

Hmmm...I added a 10 second delay, and am still not getting any text indication on the front panel.  The only case that will function is the one set to default, and the double click event doesn't do anything still.  Am I missing something?

0 Kudos
Message 3 of 10
(3,765 Views)

I would not use the Wait function here. Use a Event Structure.

 

Create an event structure and place this inside your while loop overtop of the stuff you already have. Place the Tree String outside of the while loop but do not waire it to anything. Create a Tree Control Reference (right click on the Tree String and choose Create > Reference) and place this outside of your while loop. Wire the reference to the while loop then into the Event Structure. Create seperate cases for the stop and double click events so your not pooling and taking up CPU resources. Then, inside the double click event, create a strict tree method node by right clicking on the green wire and select Create > Method > Double Click.

0 Kudos
Message 4 of 10
(3,759 Views)

You are. Learning experience here...

 

If your clicking on one of the nodes and it is feeding your case structure (which it is), why do you think it is going to the default case?

0 Kudos
Message 5 of 10
(3,755 Views)
0 Kudos
Message 6 of 10
(3,753 Views)

Unfortunately, I can't open that because you have a later version of Labview than me. 😕

 

Thanks for all of the quick responses!

0 Kudos
Message 7 of 10
(3,749 Views)
Solution
Accepted by archerdb

Never changed a version before, does this work?

Message 8 of 10
(3,745 Views)

That does work! Thanks for all the help, guys!

0 Kudos
Message 9 of 10
(3,742 Views)

Identical functionality as an event loop shown for an additional example

TreeControl[1] rev 1_BD.png


"Should be" isn't "Is" -Jay
0 Kudos
Message 10 of 10
(3,734 Views)