LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to replace multiple items at once?

I'm in a situation where I have a vi that is already coded but need to change the strict type def control that many constants and controls connect to. It is very time consuming to replace them one by one. Is there a way to replace multiple instances of an item at once? Thanks in advance.
0 Kudos
Message 1 of 2
(2,298 Views)
> I'm in a situation where I have a vi that is already coded but need to
> change the strict type def control that many constants and controls
> connect to. It is very time consuming to replace them one by one. Is
> there a way to replace multiple instances of an item at once? Thanks
> in advance.

If you want to change all of them, then modify the one they are already
linked to, or save the new one with the name of the older one.

If you don't want to update all usages, then it is hard for LV to know
which you want to update. You can automate your task somewhat by
putting your new one on the clipboard and using paste-replace. Select
the old and hit Ctl-V instead of right-click>>replace>>VI... and
selecting your file. You can also use Find to loo
k for your control.
It will produce a list in the file results where you can double click on
each, inspect, and determine if you want to Ctl-v.

Greg McKaskle
0 Kudos
Message 2 of 2
(2,298 Views)