LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Possible bug in Labview Tree Control Example

Was perusing the wonderful examples that ship with Labview, looking at Tree Control.  Example "Tree Enhancements" builds a directory tree (by parsing a directory), then gives you two ways to access elements of the tree -- either click on a branch, or specify a row number using a numerical control.  The "bug" is there is only a single Event case for returning information, namely "Tree - Value Changed".  The row number information is just "tagged on" to this case.  It really belongs as its own event, "Row Number - Value Changed" -- the two methods are described as independent, and it makes sense to keep them independent.  I've attached a modified Tree Enhancements VI.

Bob Schor
Message 1 of 6
(4,413 Views)
Hi Bob,
 
I agree with you that the example just doesn't behave like you'd expect.  I think your modifications make the example file much better.  Perhaps NI can look at what you are saying and did to the VI and incorporate it in future releases of Labview.
0 Kudos
Message 2 of 6
(4,403 Views)

Hi Bob,

This was reported to R&D (# 4FPH02TM) for further investigation. I also found it to be a strange way to write that example. Thank you for your feedback as we appreciate it in helping make our products better.

0 Kudos
Message 3 of 6
(4,374 Views)
 


Message Edited by lion-o on 11-26-2007 06:24 PM
0 Kudos
Message 3 of 6
(4,374 Views)

Bob,

Can you please upload the SubVI Init_Open_Close.vi here?

It is missing when I tried to open the tree Enhancements.vi. Smiley Sad

- Partha ( CLD until Oct 2027 🙂 )
0 Kudos
Message 5 of 6
(4,356 Views)
Partha,
Init_Open_Close.vi can be found in the folder "labview/examples/general/controls/Tree Control Directory.llb"
0 Kudos
Message 6 of 6
(4,342 Views)