LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use a Value at several different places without using a long wire?

too much wire alway make program into mess.So can I use the Value in labview like using it in C.
I have try the "Local Value",but it don't work well as a Cluster. For example, I can't connect it with "Unbundle By Name" and other Cluster Tools.
0 Kudos
Message 1 of 4
(2,860 Views)
Hi,
When you make Local Variable, click right button on it and select Change to Read. After that you can use "Unbundle By Name". If you want Bundle, select "Change to Write".
Goof Luck.
0 Kudos
Message 2 of 4
(2,860 Views)
Overuse of local variables is probably worse than the "mess" created by long wires. It increases memory usage, violates data flow, and increases probability of race conditions. A better solution to long wires is to make the diagram smaller by using subVIs. There's been a lot of discussion here and in the various LabVIEW style guides about avoiding local and global variables. I use them seldom and only then when I doing some complicated user interface.
0 Kudos
Message 3 of 4
(2,860 Views)
Overuse of local variables is probably worse than the "mess" created by long wires. It increases memory usage, violates data flow, and increases probability of race conditions. A better solution to long wires is to make the diagram smaller by using subVIs. There's been a lot of discussion here and in the various LabVIEW style guides about avoiding local and global variables. I use them seldom and only then when I doing some complicated user interface.
0 Kudos
Message 4 of 4
(2,860 Views)