07-27-2015 05:52 PM
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
07-27-2015 06:15 PM
@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?
07-27-2015 06:18 PM
07-28-2015 10:05 AM
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
07-28-2015 10:08 AM
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?
07-28-2015 10:15 AM
No. I'll try that
07-28-2015 10:25 AM
Adding in the error handler I get:
Possible reason(s):
LabVIEW: End of file encountered.
=========================
NI-488: Invalid argument or arguments to function call.
07-28-2015 10:29 AM
Is it possible that the dll depends on some other dlls that LabVIEW does not know about?
07-28-2015 10:35 AM
That solved it! Thanks everyone!
Sean
08-30-2015 09:42 AM
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.