11-19-2012 02:27 PM
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
Solved! Go to Solution.
11-19-2012 02:40 PM
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.
11-19-2012 02:57 PM
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?
11-19-2012 03:05 PM
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.
11-19-2012 03:07 PM
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?
11-19-2012 03:09 PM
Try this
11-19-2012 03:16 PM
Unfortunately, I can't open that because you have a later version of Labview than me. 😕
Thanks for all of the quick responses!
11-19-2012 03:26 PM
Never changed a version before, does this work?
11-19-2012 03:28 PM
That does work! Thanks for all the help, guys!
11-19-2012 03:41 PM
Identical functionality as an event loop shown for an additional example