LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tree VI

I want to use the tree control to show different VI ,but do not how to do it! Please give some help!

  002.jpg

0 Kudos
Message 1 of 4
(3,026 Views)

Do you want to do this, or this?

 

Show us the code you have written so far and we will try to help you out but it should be pretty simple:

 

1) Create a subpanel, when you drop it on the front panel, it creates an 'insert VI' method which is what you use to insert a VI (by its reference) into a subpanel

2) Write the code to populate the tree control using tree method/property nodes

3) Create an event structure which can respond to the tree control / button clicks and insert the relevant VI into the subpanel

 

Note, you will need to pass the VI references to the event structure (e.g. using a user event) from inside your VIs. You can also do it by obtaining a reference to the running VI, but I think passing the VI references around is neater.

 


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 2 of 4
(3,019 Views)

when click the node or item ,the right subpanel will show VI(T1.vi ,T.vi),below is my project .Thank you !

0 Kudos
Message 3 of 4
(3,009 Views)

Hi, I said show me what you have tried. You have given me empty VIs - I am not going to write your code for you.

 

I have given you the steps you need to complete the task. Use the LabVIEW Examples and there are numerous tutorials on using tree controls and subpanels on the NI community.

 

If you get stuck, then come back.


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 4 of 4
(2,985 Views)