LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

subvi not able to find location

I have a main program with certain subvi's. When  I run the program, sometimes it is not opening the subvis or sometimes it opens with a message like it was supposed to find the subvi in this location but found in another lcoation.In the later case it runs without error. but which will happen each time is unpredictable.How to solve this problem

 

0 Kudos
Message 1 of 13
(3,747 Views)

Hi,

 

May be you have shifted the Subvi from its location after placing it in main vi. Or there could be 2 subvis with the same name.

Save it again with different name and then place it in main vi again. may be this will your problem. Have you created a LLB?

Gaurav k
CLD Certified !!!!!
Do not forget to Mark solution and to give Kudo if problem is solved.
0 Kudos
Message 2 of 13
(3,740 Views)
Another possible cause is: you open the main VI, located on a network resource (such as a server), from two different PCs, and you have some sub-VI installed locally.
0 Kudos
Message 3 of 13
(3,738 Views)
Also did you rename them?
0 Kudos
Message 4 of 13
(3,722 Views)

rename what? the subvis.

Should i have to rename the subvi's?

Or should I have to change the location of the mainvi. I have tried adding the mainvi and the subvi in the same folder.Now am trying to create a library files.The learning is just going on regarding this matter.

 

0 Kudos
Message 5 of 13
(3,702 Views)

rename what? the subvis.

Should i have to rename the subvi's?

Or should I have to change the location of the mainvi. I have tried adding the mainvi and the subvi in the same folder.Now am trying to create a library files.The learning is just going on regarding this matter.


No.I meant renaming the subvi might create this problem. You can also give ignore subvis and replace the "?" with the subvis if you know the location and saveit.
0 Kudos
Message 6 of 13
(3,669 Views)
sometimes the program opens without asking about the subvis.Then for sure it will not run successful
0 Kudos
Message 7 of 13
(3,631 Views)

esorc wrote:
sometimes the program opens without asking about the subvis.Then for sure it will not run successful

 

This information is not sufficient. How you are saying that it will not run successful? Is there any error message? Can you please post your files or atleast a snapshot of your code so that we will debug it.

 

Mathan

0 Kudos
Message 8 of 13
(3,623 Views)

Other possible reason: In your PC there are 2 different sub-VIs with the same name, and when you open the main VI, the "wrong" one is already in memory.

I'm quite convinced you'll solve your problems just putting some order in your VI hierarchy.

Message 9 of 13
(3,622 Views)

 


I'm quite convinced you'll solve your problems just putting some order in your VI hierarchy

 

 

I too guess the same thing. Sometimes you have the clashing vi in the memory and sometimes you dont.

0 Kudos
Message 10 of 13
(3,619 Views)