09-18-2009 03:43 AM
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
09-18-2009 03:57 AM
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?
09-18-2009 04:01 AM
09-18-2009 05:05 AM
09-19-2009 12:40 PM
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.
09-21-2009 04:13 AM
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.
09-22-2009 03:59 AM
09-22-2009 04:36 AM
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
09-22-2009 04:37 AM
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.
09-22-2009 04:42 AM
I too guess the same thing. Sometimes you have the clashing vi in the memory and sometimes you dont.