How do I make all variables bound to numeric control a
point to numeric control b
instead?
Original question
I have a two Queue Refnums: old_queue
and new_queue
.
I have a two Queue Refnums: old_queue
and new_queue
.
How do I rebind all local variables bound to old_queue
to new_queue
?
You can rebind local variables from one control or indicator to another using VI Scripting. Place this code in a new VI:
This opens a reference to the VI whose locals you want to rebind, gets a reference to the VI's front panel, gets a reference to the control on that front panel named queue 1
, gets an array of references to the local variables of that control, and sets the Control Name
property of each local to queue 2
.
You need to enable Show VI Scripting functions, properties and methods
in the VI Server
section of LabVIEW's options in order to see the scripting properties and methods.