LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Arduino Mega 2560 does not show under serial and parallel ports in NI - Max

Hello as the title states my Arduino board doesn't show up in NI-MAX. I have followed these steps https://decibel.ni.com/content/docs/DOC-15971 and installed all software without errors however Labview simply doesn't recognize my com ports.

There is an error showing under devices and interfaces and i suspect it is connected with MAX being unable to communicate with the serial and parallel ports.

I'm completely lost, NI-VISA NI-DAQ and NI-488.2 are installed as well as the arduino IDE, and LIFA. The firmware was also uploaded to the board.

I've already tried multiple installations on different systems with the same results. I must be doing something really stupid but at this point I'm lost and a bit desperate. I Would be really grateful if someone could lend me a hand.

Note 1: Added screenshots and a notepad with my system information so its easier to understand what I have installed.

Note 2: I also know there are other posts about this topic but none offer a solution for my problem unfortunely.

Download All
0 Kudos
Message 1 of 4
(5,417 Views)

To be honest, I've never looked in NI MAX for the Arduino so I don't know how it is supposed to show up in MAX.  Based on your Device Manager, the Arduino is registerd as COM4.  In MAX, it shows COM4 without any issues (no yellow triangle) so I expect that there isn't any issue there.  Parallel ports (LPT1,2,3) are not used for this application and I don't think that an error there should affect the Arduino.

One common mistake with the Arduino Mega 2560 is that people forget that you must explicitly set a baud rate of 9600.  If you are still having issues, could you please attach the VI that you are using to test with?

0 Kudos
Message 2 of 4
(3,996 Views)

When i try the arduino VI Simple LED example (Source:https://decibel.ni.com/content/docs/DOC-20044) i set it up for pin 13 which uses the LED off the board i get the message: error 5002 "Init.vi.  Unable to establish connection with Arduino.  Please ensure that you have selected the correct COM port and that you have flashed the Arduino with the correct firmware."

If I use the Knight Rider KITT LEDs (example attached) it shows me the following message:

Error -1073807343 occurred at VISA Clear in LabVIEW Interface for Arduino.lvlib:Init.vi->Knight Rider KITT LEDs.vi

Possible reason(s):

VISA: (Hex 0xBFFF0011) Insufficient location information or the device or resource is not present in the system.

Download All
0 Kudos
Message 3 of 4
(3,996 Views)

A few things that I notice.  In both of the VIs, you have not chosen the board type to be the Arduino Mega 2560 nor has the baud rate been set to 9600.  Also, in the Knight Rider VI, it has COM2 but you have COM4 shown in the images above.  I'm not entirely sure if this is something that is changed when I open it on my computer (which does not have an Ardunio connected).

So, that is the three things that I would recommend setting up before we try to do too much speculation.  See the image below for an example:

MegaInitExample1.png

Note:  I don't have anything connected on COM4 so I had to choose something else.  Make sure you change this to match what the Windows Device Manager shows (the COM port that you use with the Arduino IDE).

0 Kudos
Message 4 of 4
(3,996 Views)