LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why won't a .net dll run in a standalone executable when it runs fine in the base vi?

Hi All,

 

I'm using a third party dll to talk to some external hardware using the LabView graphical interface.  When I run the VI everything works fine, however, when I build a standalone exectutable the dll does not run and the program immediately stops (presumably due to an error.  Has anyone else had this issue?

 

Thanks

 

Sean

0 Kudos
Message 1 of 19
(3,506 Views)

@sbuxton wrote:

Hi All,

 

I'm using a third party dll to talk to some external hardware using the LabView graphical interface.  When I run the VI everything works fine, however, when I build a standalone exectutable the dll does not run and the program immediately stops (presumably due to an error.  Has anyone else had this issue?

 

Thanks

 

Sean


Presumably the dll appears in the build folder when you build?

0 Kudos
Message 2 of 19
(3,487 Views)
What is the presumable error? That is the place to start.

Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 3 of 19
(3,481 Views)

tyk007: Yes, the .dll appears in the build folder.

 

Mike:  The loop stops if there is an error or if the stop button is pressed.  Since the loop stops immediately there must be an error, but the error window does not pop up.

 

Thanks,

Sean

0 Kudos
Message 4 of 19
(3,358 Views)

If you are wiring the error to another node (e.g. stop terminal) then you won't get an automatic error handling popup. Have you tried putting an error handler VI/popup in your code or logging the error to disk to see the code/description of the error?


LabVIEW Champion, CLA, CLED, CTD
(blog)
0 Kudos
Message 5 of 19
(3,354 Views)

No.  I'll try that

0 Kudos
Message 6 of 19
(3,346 Views)

Adding in the error handler I get:

 

Possible reason(s):

LabVIEW:  End of file encountered.
=========================
NI-488:  Invalid argument or arguments to function call.

0 Kudos
Message 7 of 19
(3,342 Views)

Is it possible that the dll depends on some other dlls that LabVIEW does not know about?

0 Kudos
Message 8 of 19
(3,338 Views)

That solved it! Thanks everyone!

 

Sean

0 Kudos
Message 9 of 19
(3,321 Views)

sbuxton: how did you solve your problem? I am having the same error and the DLL is included in the support directory of the compiled file and I am still getting the error.

0 Kudos
Message 10 of 19
(3,147 Views)