Re: FW: Replacing one instance of a VI versus many

2004-01-23 Thread Scott Hannahs
At 16:39 -0600 01/22/2004, Scott Serlin wrote:
>My VI has a subVI that is called out in many places within the top level
>VI.  How do I get the parent VI to pick up the subVI that has been
>changed through the entire parent VI in one shot?

If you merely modify the sub-vi and resave it then it will call the new sub-vi 
everywhere.  If you want to change the sub-vi to one of a different name then do the 
following.


Open toplevel.vi
Open sub.vi
"save as" sub.vi as newsub.vi (do NOT check the box "save without updating callers")
close newsub.vi and toplevel.vi
rename changedsub.vi to newsub.vi in the same directory as newsub.vi
reopen toplevel.vi

Bingo, it will pickup the changed subVI everywhere it used to call sub.vi.

-Scott
-- 
 Dr. Scott Hannahs, Head of User Research Instrumentation
 http://sthmac.magnet.fsu.edu
 National High Magnetic Field Laboratory, Florida State University
 1800 E. Paul Dirac Dr., Tallahassee FL 32310, (850)644-0216/FAX 644-0534

"The requirements said: Windows 2000 or better.
So I got a Macintosh."




FW: Replacing one instance of a VI versus many

2004-01-23 Thread Scott Serlin
My last post did not make it to the list for some reason.  Anyway,
here's a repeat of the question:

My VI has a subVI that is called out in many places within the top level
VI.  How do I get the parent VI to pick up the subVI that has been
changed through the entire parent VI in one shot?