From Saturday, Nov 23rd 7:00 PM CST - Sunday, Nov 24th 7:45 AM CST, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

LV with Arduino Nano 3.0 - ATMEGA328

Hi all,

I have arduino nano 3.0. On digital input (2) I have connected 1 wire DS18b20 temperature sensor (i can normally read values of tempratures in Arduino software ->serial monitor).

What I want to do next is to read this Digital port(2) in labview but have problems with communication. I download "LabVIEW Interface for Arduino" and install everything...

Then I tried to open example for "Arduino Analog Read Pin" and change blocks with "Read digital pin"... and set correct VISA COM port, Baud Rate to 9600, but I cannot chancge "Board Type" to "nano", because is not supported.

When I run this VI, nothing read? Any ideas?

VI is attached...

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Message 1 of 13
(14,800 Views)
0 Kudos
Message 2 of 13
(8,977 Views)

Any ideas on my problem ?

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Message 3 of 13
(8,977 Views)

There is nothing new for me on this link, I already read it before....

I use this example, but have problems that I described. Also there is no help on this link, just suggestion... So still searching solution for my problem.

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Message 4 of 13
(8,978 Views)

Did you go to the link that I posted?

0 Kudos
Message 5 of 13
(8,978 Views)

Yes I go, there is NO help on your link also guy NATural said that he is not familiar with them....

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Message 6 of 13
(8,978 Views)

What baud rate are you trying to use?

0 Kudos
Message 7 of 13
(8,978 Views)

Hi,

Basics to check:

- You mentionned installing the Lifa package, but not the visa drivers. Is this done? for windows: http://joule.ni.com/nidu/cds/view/p/id/2251/lang/fr

- You mentionned to have changed the "Arduino Analog Read Pin" to  "Read digital pin", but for digital pin, you need also to set the digital pin mode (input or output), using the appropriate VI. (Sorry, I can not open the VI posted, as I'am still on LV 2009, so I can't check if you did that already)

- you mentionned to have seted the visa baud rate to 9600, but the default baud rate in the arduino firmware is 115220...

Do not wire anything else than the COM port, it should be enough. (and if you are not using wirelesss, even the com port wiring is not required).

Hope this helps

Antoine

0 Kudos
Message 8 of 13
(8,978 Views)

BTW : didn't mention clearly, but the board type in the init .vi can also be left unwired. (uno default is fine with the nano).

0 Kudos
Message 9 of 13
(8,978 Views)

I already have installed VISA 5.1 ... also I already  connected several others instruments over LAN, RS232, USB...

I set 9600 because I set in arduino code "Serial.begin(9600);" I also try with "115220"...

But still "Unable to find Arduino; error 5005"

I now try example "Arduino Analog read pin" with potenciometer on A0; I set correct COM port (COM5), baud rate (115200), Board Type: Uno; Bytes per Packet:15; Connection Type: USB/serial;

_________________________
Rookie; LV 2011 on WIN 7
0 Kudos
Message 10 of 13
(8,978 Views)