Instrument Control (GPIB, Serial, VISA, IVI)

cancel
Showing results for 
Search instead for 
Did you mean: 

COM Ports do not show under serial and parallel in NI Max

Hello,

 

I'm trying to connect an Arduino mega2560 board with labview but it doesn't show up in NI-MAX., in fact Serial and Parallel Ports are not identified in 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've installed NI-VISA, NI-DAQ, NI-488.2 the arduino IDE, LIFA and drivers as well. The firmware was also uploaded to the board.

 

I've already tried multiple installations on different systems and different boards 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.

Download All
0 Kudos
Message 1 of 13
(8,109 Views)
The image in capture.jpg DOES show com4 which matches the device manager so your question does not make any sense. You are not using the printer port (of in fact you actually have one) so why are you concerned about it?
Message 2 of 13
(8,103 Views)

It should be showing like this new image I'm attaching taken from here: https://www.youtube.com/watch?v=RhdnmFJcFA0

As you can compare there is no serial and parallel section under devices and interface in my system.

0 Kudos
Message 3 of 13
(8,099 Views)
Under Devices and Interfaces of both images, there is clearly com ports. One image lists Com4 (also listed as ASRL4::INSTR) and the other image lists Com2. That is exactly what is supposed to be listed. There is nothing wrong and I don't understand why you keep saying the port is not listed.
Message 4 of 13
(8,088 Views)

Because the device isn't comunicating with labview so i thought that was the problem now im even more lost

0 Kudos
Message 5 of 13
(8,081 Views)
What error do you get? This is information you should have provided in your first post.
Message 6 of 13
(8,078 Views)

When I open VISA Test panel and select the tab view attributes, the attribute "Is Port Connected"  has a current value of  "Invalid Property Value" History data says: "

Error

VISA: (Hex 0xBFFF001D) The specified attribute is not defined or supported by the referenced resource."

 

When I test using Basic I/O only the write function works all others timeout and have the error VISA:  (Hex 0xBFFF0015).

0 Kudos
Message 7 of 13
(8,073 Views)
That attribute is only for NI serial devices. Ignore it.

You won't get an error on writes - even if there is no device at the end of a serial cable. What command are you sending? Do you get an error with the arduino VIs? Can you use another program such as hyperterminal, putty, etc?
0 Kudos
Message 8 of 13
(8,056 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.

 

You mention the software Hyperterminal and putty, I've never used those before, what should I test?

Download All
0 Kudos
Message 9 of 13
(8,036 Views)
Did you actually click on the pull down menu of the VISA Resource Name and select the port you have on your system (Com4)?

You would use a terminal emulation program to read/write to the arduino.
0 Kudos
Message 10 of 13
(8,030 Views)