LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Copy, Paste local variable - how not to create another variable name & orphaned control?

When you copy and paste a local variable or a section of the block diagram containing a local variable, the new copy is not the same as the original - it contains an instance of a new local variable rather than an instance of the original local variable, and a new control gets created somewhere matching this new variable name. Doing "Select Item" on the new variable lets you set it back to the original variable's name, but still leaves an orphaned control somewhere on the block diagram.
 
Is there a way to cause copy and paste of a local variable to create a new  instance of the same local variable, rather than creating a new variable?
0 Kudos
Message 1 of 3
(2,950 Views)
Select the local variable then Ctrl-drag it to a new location on the block diagram.  This will create a copy of the node without creating a new control.
~~
0 Kudos
Message 2 of 3
(2,949 Views)
Thanks, nickf. Works great.
0 Kudos
Message 3 of 3
(2,941 Views)