From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

tree control choose a tag by more than one parent tag

Smiley Sad
Hello,
 
i have made a tree control like this:
 
- 70002
            - 50001
           
0 Kudos
Message 1 of 15
(3,321 Views)
Aha... can you give a little bit more details please... seems like you accidently pressed "post" Smiley Very Happy

We have two ears and one mouth so that we can listen twice as much as we speak.

Epictetus

Antoine Chalons

0 Kudos
Message 2 of 15
(3,316 Views)
Sorry,
 
Hello,
 
I have made a tree control like this:
 
- 70002
           - 50001
           - 50002
- 70001
           - 50001
           - 50002
           - 50007
 
I want to put a child tag under the tag 70001/50002. How can I do this by using the addobject method? Can I give the method a path (at the parent object connector) like this 70001/50002?
 
 
thankyou
 
schwede
 
0 Kudos
Message 3 of 15
(3,310 Views)

Attached is a vi, that shows how you could do it, if you don't need to get deeper in the hierarchy.

Just set all values to default (menu > edit > reinitialize all to default). Then enter a root node (70001 or 70002) then the node, which should act as parent for the new item and finally enter the new item.

Be aware, that there is no check, if there are more nodes available in the loop. It is just to give you an idea - not a full featured solution.

Thomas

Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 4 of 15
(3,295 Views)

Smiley Very Happy

 

Thankyou works great ...

 

 

Smiley Very Happy

0 Kudos
Message 5 of 15
(3,287 Views)
Hye Becktho !

You have just post this VI with LV8 version....

I know there is some issue about conversion but may you post the vi "additem.vi" in LV7 version


Julien
Conception Informatique et électronique
CNRS LCSR Web
Orléans la Source FRANCE
0 Kudos
Message 6 of 15
(3,237 Views)

Here is a copy of the Additem.vi saved in LabVIEW 7.0 format.

-D

Message 7 of 15
(3,232 Views)
Thanks a lot for this version 7 VI

5 stars are the result of your help ....

I try to understand how a son might be added in a tree. In fact I try to (re) make a VI to use the 'create units' fonction which is fixed into Labview soft....

I
Julien
Conception Informatique et électronique
CNRS LCSR Web
Orléans la Source FRANCE
0 Kudos
Message 8 of 15
(3,223 Views)
I post the VI that I am programming

I try to insert a son under a parent tag..

The parent are correctly inserted in the tree but when I try to insert the corresponding 'son' with parent tag  the  error 1088  appears...

and  the explanation is not helpful....

Please anybody might give me some explanations
 


Julien
Conception Informatique et électronique
CNRS LCSR Web
Orléans la Source FRANCE
0 Kudos
Message 9 of 15
(3,223 Views)
Oupss forget to post the VI

Here they are...


Julien
Conception Informatique et électronique
CNRS LCSR Web
Orléans la Source FRANCE
0 Kudos
Message 10 of 15
(3,220 Views)