From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Arduino Error 5005

Solved!
Go to solution

Hi All,

 

This is an interesting one. 

 

LabVIEW does not see the Arduino comport.

 

I have LabVIEW 2011 Student Edition

 

Followed all the intructions and updated the firmware on the Arduino board. Unsure why LabVIEW does not see the comport in the VISA resource control.

 

I can upload sketchs fine from the Arduino IDE.

 

I either get Error 5005 or a labview error when I try to fudge the resource and type it in manually as there is not selection for the comport.

 

Any ideas?

 

Thanks

 

Kamilan

0 Kudos
Message 1 of 16
(12,399 Views)
So, are you saying that windows shows it as a serial port but MAX does not? Or does it not show as a serial port in windows device manager? Of it's the latter, then you are missing the windows driver and your problem has nothing to do with LabVIEW.

Saying you followed all the instructions is not really helpful since you did not link or attach them.
0 Kudos
Message 2 of 16
(12,396 Views)

Gidday,

 

The COM PORT shows itself in the Device Manager as COM3.

 

Here are the steps I followed.

 

Step 1.

https://lumen.ni.com/nicif/us/evaltlktlvardio/content.xhtml

 

Step 2.

http://arduino.cc/en/Guide/Windows

 

Step 3

http://digital.ni.com/public.nsf/allkb/8C07747189606D148625789C005C2DD6

 

I can skethes into the arduino as per step 2. Once I updated the firmware,I proceeded to use to Arduino examples in LabVIEW. The problem is that I cannot see COM3 when  using  the VISA Resource as a control or constant I cannot see the comport as per the image attached.

 

Once again COM3 can be seen by the device manager and the Arduino development tool to send code and update the firmware.

 

Help?

 

Thanks

0 Kudos
Message 3 of 16
(12,393 Views)
Solution
Accepted by topic author Kamilan
You did not provide the LabVIEW error and I'm guessing you did not do a search for it. Did you install NI-VISA? That's the hardware driver needed for serial communication.
Message 4 of 16
(12,382 Views)

See Attached.

 

Do I need to install the NI-VISA drivers? Shouldn't they be included in the install of LabVIEW?

 

Thanks 

0 Kudos
Message 5 of 16
(12,377 Views)
Of course you need to install the driver as the hundreds of answers to the same question have said. Hardware drivers are a separate optional installation which you are prompted for after installing LabVIEW.
Message 6 of 16
(12,375 Views)
Hi, That worked. Thanks!
0 Kudos
Message 7 of 16
(12,361 Views)

Even if you install the recomended drivers it my still not work but when you open one of the examples select window and open the block diagram. There is a block called init if you highlite the top input line it will show VISA_Resource you must right click on this and create a constant. A box will appear next to the input. if you put your cursor in the box and drag it slightly to the left a list of serial com ports will appear. Click on the correct one and save the .vi. This cures the 5005 error the reason is the com port needs to be defined. I've done this with most of the samples. I found this because no activity was seen on the arduino serial ports showing no activity from labview.

0 Kudos
Message 8 of 16
(12,267 Views)

i managed to solve the 5005 error(Thank you very much) and now i get the 5002 error,how do i solve for it?

0 Kudos
Message 9 of 16
(12,228 Views)

Have you seen this article?  This may be of help:

 

http://digital.ni.com/public.nsf/allkb/15AE7F234C5B966886257884006DF1CD?OpenDocument

0 Kudos
Message 10 of 16
(12,213 Views)