LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

batch-replace

Hi,

Do you have a method to batch-replace all instances of a given sub-vi by another sub-vi inside a diagram ?

Merci - oz
0 Kudos
Message 1 of 2
(2,759 Views)
> Do you have a method to batch-replace all instances of a given sub-vi by another sub-vi inside a diagram ?
>

It is a bit of a trick, but yes. If you name the replacement VI the same,
you can load the replacement into memory first. Then load the application.
The linker always looks for the VI it is loading to be in memory before
looking on disk, and it will substitute the one in memory for every instance
throughout your application.

Once you are sure that at least one instance was converted over, you
probably want to save the substitute VI with the name that you want.
Do this while the rest of your application is in memory and you are
pretty much done. Each call to the original subVI is now pointing to
the replacement. This will work best if the replacem
ent VI has a
connector pane that is pretty close to the original.

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