Archived: Why Do I Get Error 5005 When Using the LabVIEW Interface for Arduino?This document has been archived and is no longer updated by National Instruments
Primary Software: LabVIEW Development Systems>>LabVIEW Professional Development System
Primary Software Version: 1.0
Primary Software Fixed Version: N/A
Secondary Software: N/A
I have a VI that uses the LabVIEW Interface for Arduino toolkit that generates the following error when I run my application.
Error 5005 occurred at Unable to find Arduino. Please make sure the Arduino is connected to your system and that the Arduino drivers are installed.
Please note! LIFA has been replaced with LINX. It is highly recommended to move to LINX as there will be no further development for LIFA.
Following instructions are archived and last testing was done using Arduino 1.0.5. software.
Error 5005 indicates that the Init.vi is configured for automatic Arduino detection (no VISA resource is wired into the VI) but it was unable to find an Arduino connected to your computer. To resolve this error, try the following:
1. Take the Init.vi out of auto-detection mode by wiring up the Arduino VISA resource and baud rate. Right-click on the top left terminal of the Init.vi in and select Create»Constant. This will create a VISA constant. Select the COM port your Arduino is connected to from the drop down menu. The correct COM port to use will be shown in the Arduino Integrated Development Environment (IDE) when you flash the LabVIEW Interface for Arduino (LIFA) firmware to the Arduino board. Right-click on the terminal underneath the VISA resource and select Create»Constant again. In this box set the baud rate for your Arduino. The default for most cases will be 115200.
2. Make sure you have the latest version of NI VISA installed on your computer. You can check this by opening NI Measurement & Automation Explorer (NI MAX). Search NI MAX on your computer and run the executable. Expand the software section and verify that NI VISA is listed there. If it is not listed, navigate the following link, search for VISA and download the latest version.
3. Check to see if your Arduino shows up under Windows Device Manager. Search Device Manager on your computer and run the executable. Expand the USB section and see if your Arduino is listed. If it is not, you may need to install the drivers for your Arduino. See the External Link: Getting started w/ Arduino on Windows for steps on doing this.
4. Ensure that all cables are securely attached if using a wired connection or that you have adequate signal strength if using a wireless connection. The USB ports in the back of a desktop computer generally have more stable power supply. You may want to use those ports if on a desktop computer.
5. Flash the LIFA firmware to the Arduino board as described in Knowledge Base 5LPAQIYG: How Do I Load the LabVIEW Interface for Arduino Firmware Onto My Arduino Uno.
6. Every program that uses the LIFA Toolkit, should begin with the init command end with the close commands. Ensure that you avoid use of the abort button as much as possible. When you abort a task, your code will not have a chance to run the close VI, and the next time you run your code, the Arduino will start up in an unknown state. You may need to restart the board and re-load the LIFA firmware to correct this.
7. Make sure that no other programs are open that are also attempting to communicate with the Arduino. If you have the Arduino IDE open, for example, the resource may already be reserved when LabVIEW tries to access the COM port.
KnowledgeBase 5INA7UYG: How do I Connect an Arduino Uno to my PC?
Report Date: 05/03/2011
Last Updated: 08/31/2016
Document ID: 5L2ACNYG