LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

navigating to a vi

I have 2 or more vi's with the same name.  Different front panel parameters and in different directories.  How do I make sure when I call them as a sub vis I get the right one ??  I know....I know I should have callled them different names.
0 Kudos
Message 1 of 4
(2,286 Views)
If you are asking about a manual check while developing, simply open the front panel of the VI's, then open the VI properties dialog (ctrl+i).
In the General category you can check the VI location.

Paolo
Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 4
(2,278 Views)
Thanks !
0 Kudos
Message 3 of 4
(2,272 Views)
Hello Clint,
 
You are obviously new to LabVIEW, so I will interject a word of advice:
 
    Better now than later.
 
You should take the time now to correct the name conflict. You can not have two VIs with the same name loaded in memory. That means you can not run with both of these VIs being used. That may be OK right now, but it will almost surely cause you problems later, and probably when this issue is not on your mind.
 
When a VI and it's subVIs are being loaded, LabVIEW checks to see if a VI with that name is already loaded. If it is, the one already loaded (i.e. in memory) is used.
 
You need to rename one of the VIs and change all callers of that VI to call it with the new name. You can do this as follows:
 
    Open the applications that use the VI being renamed.
    Open the VI being renamed.
    Select Save As.
    Save to a new name , updating callers (the default).
All in-memory callers will call this new subVI.
 
Roy
0 Kudos
Message 4 of 4
(2,256 Views)