Error 0 When Running a LabVIEW EXE That Controls a Peripheral Device

Updated Feb 20, 2024

Reported In

Software

  • LabVIEW

Issue Details

I have a VI written in LabVIEW that accesses and controls a peripheral device such as a camera and I am currently working on building an executable with it. Even though my code works fine when being executed directly from the development environment, when I try to run the executable on any computer, including the development machine, I always get error 0 and it is not possible to run the program.
 
Error 0 occurred at an unidentified location
 
Possible reason(s):
 
LabVIEW: (Hex 0x0) Error connecting to GPIB driver or device. The NI-488.2 driver may not be installed.

Error connecting to driver or device. The NI-488.2 driver may not be installed. 

VISA: (Hex 0x0) Operation completed successfully. 
 
The error message is displayed in the following dialog box:
Error 0.png

Solution

Considering that the code successfully runs from the LabVIEW development environment, and the issue appears when running the executable on different computers (including the one used for development), the error could be related to an antivirus software blocking the executable, not allowing it to access the external devices connected to your system. To solve the issue, if you have antivirus software installed on your PC, review its settings, add the executable to the list of trusted applications and, if required, provide it with rights to access the external devices. Contact your system administrator or IT team for further assistance.