01-23-2014 10:18 AM
hi all,
i try to draw tree in picture.i have a tree that to contain parent and children.
i want to draw tree that look like flow chart:
parent
chiled1 chiled2 chiled3
chiled11 chiled22
chiled23 chiled24
and so further...
see att vi. use labview 2012(win7).
thank's.
01-23-2014 10:39 AM
Do you have a specific question or do you simply want to show us your solution? Does it work?
Some subVIs seem to be missing (or have been renamed externally after the main program was saved already)
01-26-2014 01:01 AM
Hi altenbach,
first thank's for reply.
i try to realize this but not succsess. i have a problem with the location's in the picture.
can help me with that?
regard's
eyal.
01-26-2014 05:33 AM
I'm assuming you don't want something exactly like what's in the image, because that's a more complex form of graph (it has multiple links). Also, I have no practical experience with this, but I would probably do one of the following:
01-27-2014 01:27 AM
Hi tst,
thanks for reply.
i was unable to use this control.i have some progress with my vi but it still not working well.
see att file.if you have any suggestion about this vi it will be helpfull.
regard's
eyal.
01-27-2014 09:20 AM
Hello JTAG
By chance, do you have MathScript? Do you need to have it done only with LabVIEW?
There is a function in Mathscript called "treeplot" that might come in handy. Here is a link with some references about MathScript plots
http://forums.ni.com/t5/LabVIEW-MathScript-RT-Module/MathScript-Nugget-16-Plots-Galore/td-p/1059557
Regards.
01-27-2014 01:14 PM
So many ways to not re-invent the wheel here. I use GraphViz:
I have a more complex interface, but it is simple to create an example using the array of node names you found, assuming the first column in the parent and the rest are children.
simply tweak with the path for dot.exe as well as your choice of size, color etc.
01-27-2014 01:16 PM
What's the purpose of this picture?
Could you use the VI Hierarchy for this?
Create a VI for every child, and grand child, ....
Call child VIs in the Parent VI; call grand child VIs in child VIs; ....
Use VI Hierarchy to show the tree.
01-29-2014 09:53 AM
Hi all,
thank's for replying.
i will check yours suggestions.for know see what i did.
any suggestion/remark about the vi will be welcom.
regrad's
eyal.
01-31-2014 10:20 AM
@Darin.K wrote:
...some very interesting stuff about GraphViz...
Darin, is it possible to extract the locations of the nodes in the generated picture? I'm thinking about the possibility of adding functionality which would require knowing what node the mouse is over, or what is clicked on.
-- James