LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

labview system.io.filenotfoundexception

Hi All,

 

I'm getting the labview system.io.filenotfoundexception error when executing the application built from my VI.

Initially I was getting this error (screenshot below), which I mitigated by placing the missing .llb in "data" folder in the application directory:

Alibek70_0-1578330058236.png

However now I'm getting this error (screenshot below) and can't figure out what exactly is missing:

Alibek70_1-1578330157691.png

I tried using Process Monitor from sysinternals with no help as I'm getting thousands of lines even after filtering to see prompts initiated by the application only.

 

I also reviewed all the associated VI's and subVI's using LLB manager. I have reconfigured some path's which Labview couldn't locate by itself, however the problem is still there...

 

Any help is much appreciated!

 

Regards,

Alibek

0 Kudos
Message 1 of 5
(3,121 Views)

The problem you're seeing there is a problem with DLLs.  You probably need to find all DLLs that the VIs are calling, and ensure that all of those DLLs, plus all of their dependencies, are in the application directory.

0 Kudos
Message 2 of 5
(3,097 Views)

It seems to me the dlls are loaded and executing as expected.

 

A .NET function in Run Ultracom.vi is trying to locate a file (not a dll), and that file cannot be found.

 

If the file is passed by the VI to the function, put a popup in the VI so the exe shows the path. If not, you'll have to dig until you find what file is missing.

Message 3 of 5
(2,887 Views)

Found the problem. When compiling (building the .exe), Labview placed one of the dependant files into the "data" folder, while it should have been sitting in the same folder with the created executable.

Would be much easier if labiew indicated exactly what file was missing in the first place...

0 Kudos
Message 4 of 5
(2,786 Views)

@Alibek70 wrote:

Found the problem. When compiling (building the .exe), Labview placed one of the dependant files into the "data" folder, while it should have been sitting in the same folder with the created executable.


The file can be placed in the executable root directory*, but it's not by default.

 

* You can change this in the "destination" tab in the execution builder, but you first have to add a destination, IIRC.

 


@Alibek70 wrote:

Would be much easier if LabVIEW indicated exactly what file was missing in the first place...


LabVIEW functions give a detailed error, and it would be up to the programmer to report them. However, the .NET errors are a bit more abstract...

0 Kudos
Message 5 of 5
(2,778 Views)