LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I would like to call vi that has some sub vi's with the same name as what is already loaded in memory

Lets see, where to start. I have an application (1) that has been built out of several fundamental library's that a different application(2) was created from. The library's and some sub vi's from application (1) have the same name as the ones from application (2). I would like to call the code from application (2) into application (1). The problem is that LabVIEW 7.1 uses the vi's already in memory which may be different than the ones I am trying to load in application (2). Other than renaming all of the llb's and vi's from application (2) is there a way to unload the application (1) and load application (2) then when it is finished running application (2) reload application (1)? I hope this is clear. BTW application (1) has 500+ vi's and application (2) has 210+ vi's.

Thanks
Chris
0 Kudos
Message 1 of 3
(2,445 Views)
Chris,

Unfortunately, renaming the VIs in (2), though tedious, is the safest approach. Someone will probably chime in and tell you that dynamically loading and unloading VIs using VI Server might work, but that will just make things more complicated IMO. (Dynamic loading/unloading has its place if you set out to design the app that way, but you're dealing with a large existing codebase.)

I suggest appending a short prefix to all the VIs in (2), effectively creating a new namespace for those VIs, then relink the VIs in (1) to the renamed (2) VIs.

The LabVIEW team is working on addressing these kind of namespace issues in future versions of LabVIEW.

Steven H.
0 Kudos
Message 2 of 3
(2,432 Views)
Thank you very much. Safer has to be better right?
0 Kudos
Message 3 of 3
(2,424 Views)