LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

how to read all properties from one object and apply all of them to an object of the time type

Im trying to apply all properties of an object to an object of the same type, but i dont want to manuly wire off of the properties from one to the other, is there an easier way to do this?
0 Kudos
Message 1 of 5
(2,895 Views)
Wiring all properties is not that difficult and it might be the only way to copy all properties.
1. Create a property node for each control or indicator for which you want to copy properties.
2. Using the pointer tool, point to the bottom of the property node to see the re-size handle (a small circle on the bottom border of the property node.
3. Grab the re-size handle, stretch it down a long ways, then release it. The properties will automatically be displayed. If you stretched it far enough, the bottom property will be repeated. If not, stretch it some more until you see the bottom property repeated, then shorten it up (using the re-size handle) to remove the duplicates.
4. The property nodes will be Read nodes by default. Right-click on the property node for t
he control or indicator you want to "inherit" the properties of another control, and select Change All to Write.
5. Wire the property nodes, property by property.
0 Kudos
Message 2 of 5
(2,895 Views)
I knew about that way.. I was just wondering if there was a better way to do it other then that. Forinstance I have a multicolum listbox showing different FG and BGcolors as well as symbols. I want to be able to transfer that information direction somehow from the original to the copy... If i do infact use the property node for this it will not copy all information such as specific cell colors when applied to teh orginal.
0 Kudos
Message 3 of 5
(2,895 Views)
If you can do this at edit time, highlight the first listbox, press control, and drag it to create a copy. It will have all the same properties at the original.
0 Kudos
Message 4 of 5
(2,895 Views)
Yea.. thats the way Ive been coping a lot of my stuff... but the problem is still that when i get new information into the mulicolum listbox... depending on the vales.. the cells will be colored a specific way.. (forintance when it finds that it matches a value in teh database ive set up).. so it need to be dymanic and constantly able to change.. i have one thats set up that does this.. i jsut wouldnt want to go thourgh the process of hooking it all up again for the other one if its not needed... but it looks as if i will have to. luckily i have things in event sturctures so it wont be wasting anymore cpu time.
0 Kudos
Message 5 of 5
(2,895 Views)