LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Problems connecting with Arduino

Solved!
Go to solution

Hi all,

     I am trying to get serial communication with my Arduino board, but I am experiencing some problems. The board is programmed to read serial data to turn LEDs on and off. It does work with the Arduino serial monitor at COM4. But when I try to write similar instructions with Labview using VISA, it seems that I can not use it. I think that I might be a problem with the device. Should it appear in MAX? Because I can not see any devices when I open MAX. Also, using VISA, VISA Resourse Name does not show any device (I was hoping to see something like ASRL::Inst....)

      By the way, I am using:

     -Arduino duemilanove (FTDI driver version 2.60.00)

     -Labview 2009

     -Window 7

 

    Sorry if some information is missing, it is my very first time writing to the forum. If someone could give me some help but he/she needs more information, please let me know.

    Thank you very much for any kind of help.

 

         Jose

0 Kudos
Message 1 of 5
(4,161 Views)

The only thing that would appear in MAX is the com port under Devices and Interfaces>Serial and Parallel. When you use one of the examples (i.e Basic Serial Write and Read), what error code do you get?

0 Kudos
Message 2 of 5
(4,156 Views)

Hi Dennis,

    Thank you for your answer. I am posting three images which I hope could give you useful information. The first corresponds to MAX, no COM port/nothing appears. However as you could see in the next image, in Hardware devices there is a port (COM4) available. The final image corresponds to the error provided by Labview Basic serial Read & Write. The message appears as soon as I run the vi, writing in the I/O control COM4.20897i92955BA2AE7333F220899i0C47BE9A18CE2AE120901i4A36A86F6B840FA3

0 Kudos
Message 3 of 5
(4,131 Views)
Solution
Accepted by topic author JBarriada

You say you are using VISA, but have you installed it?  The error dialog you are getting would be typical for someone who hasn't installed the VISA drivers.

 

I'd recommended popping in the Drivers DVD again and running that.

0 Kudos
Message 4 of 5
(4,116 Views)

In fact you were right. I was assuming that VISA was installed, because it was available in the function panel, but it was not installed. It has been quite painfull the installation though. It seems that it did not like the NI Device Drivers DVD in the very begining. After a couple of tries, I have successfully installed NI-VISA. I still do not manage to make the arduino work with the serial instructions, but I could see the TX and RX LEDs in the board blinking so I guess that serial instructions are being sent.

 

Thank you very much for your help

0 Kudos
Message 5 of 5
(4,079 Views)