LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot find the file erorr

When I run vi I got message "Cannot find the file 'C:\...' (or one of its components). Make sure path and the filename are correct and that all required libraries are available." See picture in attachment.
 
After I click OK, vi works fine and never complains again. I tried to mass compile, saving under different name but it didn't help. There are few dll's in it and few serial port vi's (I have two 8421 cards in PXI) but again everything works fine after this message. People who are using it always complains about message and I am afraid it could start some other errors later on.
 
Thanks,

Zoran
0 Kudos
Message 1 of 4
(2,884 Views)
Hi Zoran,

Without knowing the code of your "PCC power ESC V14.vi", it's not possible to guarantee what is causing the error. Therefore I recommend you to perform some further debugging of your code to find out exactly what is causing the error.

You say that the error is generated when the VI is run, not when it's just loaded. If that's the case you should use Highlight Execution to track where in your code the error is generated. Are you calling the "PCC power ESC V14.vi" dynamically using "Open VI Reference" or "Call By Reference Node" or is it called as a SubVI? If it's called dynamically, have you made sure that you can run it by itself? If the "PCC power ESC V14.vi" calling any DLLs, make sure that the Call Library Function Node is pointing to the right path of the DLL.

Please check the things above and submit "PCC power ESC V14.vi" if you are still getting the error, thanks.
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 2 of 4
(2,857 Views)

Hi Philip,

The error appeared only while VI is loading not while running. But every time during the load. I did mass compile of all VI's on my hard drive (it took hours) and this get rid of this problem. Apparently some sub VI's were not on the proper place.

Thanks for help,

 

Zoran

0 Kudos
Message 3 of 4
(2,844 Views)
Hi Zoran,

Ahh, I took your words too literally and thought that it only happened when you were actually running the VI. Great catch!

Have fun!
- Philip Courtois, Thinkbot Solutions

Thinkbot Solutions
0 Kudos
Message 4 of 4
(2,816 Views)