LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Hi l have Arduino Pro l try to interface

Hi l have Arduino Pro l try to interface step by step  but  it didn't work Can l interface Arduino Pro With Labview and How

0 Kudos
Message 1 of 10
(8,710 Views)

Only the UNO and the Mega are officially supported but I've heard that some other boards do work.  Are you able to get it working with the Arduino IDE?

0 Kudos
Message 2 of 10
(4,646 Views)

With Arduino IDE work  very well but in labview you have a lot of choice ,so how can l use arduino pro with labview

0 Kudos
Message 3 of 10
(4,646 Views)

loniloniloni,

What have you tried?  What exactly is not working?  How do you know it is not working (do you see errors, not receive and data, etc).  The more details you provide the easier it is to help.

Thanks,

-Sam K

0 Kudos
Message 4 of 10
(4,646 Views)

I have successfully run LIFA in the following boards: FIO, UNO, Duemilanove, Diecimila and Nano. I think you should be able to run LIFA on an Arduino Pro with Atmega 328.  When you compile and upload the LIFA package to the Arduino, have you set the board type under Tools>Board to the correct variation of the board that you are using?

If this doesn't do it for you, then do as Sammy_K suggests and give us as much info as you can.


JohnCS

0 Kudos
Message 5 of 10
(4,646 Views)

Look l use Arduino Toolkit with Labview and in the INT "choose board"  and there are only 3 boards and isn't Arduino Pro to choose so JohnCS how do you use Arduino Fio or Duemilanove with Labview when they aren't in the list of boards that you could to use in Labview.

And make the simplest programing to blink the LED how in the video down

http://www.youtube.com/watch?v=zRA0YbOX4Ao

but when l push Run in Labview and l Switch the Boolean Button the Boolean led in Programing Does not blink and few second later the Boolean led blink but the Real LED in arduino does not blink why.

0 Kudos
Message 6 of 10
(4,646 Views)

l use labview a lot of and l have programing to interface two different pc so to send-transmission Text and everything and to control  the pc that you interface so with only one cable from the mic of your
PC to the  altoparlante of other pc the speed of transmission is fast and it is very interisting because it work with the change the Frequency of the transmission sound and with this l won the engineering Awards in my country with this programing

0 Kudos
Message 7 of 10
(4,646 Views)

Most boards that are actually supported but actually work use the default board type (Uno).

0 Kudos
Message 8 of 10
(4,646 Views)

NathanB is right, you shouldn't have a problem with the Arduino Pro since it is functionally equivalent to Arduino Duemilanove or UNO but lacks the USB port. You'll need to use a USB to TTL converter to upload sketches to the Arduino.  Other than that, it has an Atmel328 microprocessor that will act the same as the UNO since that's the idea behind the various kinds of Arduinos .

Starting from the beginning, here is the procedure I follow to get going with LIFA on a different board. To do this, I am using the Arduino 1.01 IDE from Arduino.cc.  When there is no USB connection, for  communications I use a Sparkfun FTDI Basic for 3.3.volts devices or a Sparkfun FT232RL USB Breakout Board for 5 volts. In a pinch, a Sparkfun XBEE Explorer can also be used. 

Using only the Arduino IDE programming environment, can you compile, upload and run one of the Arduino example sketches from the Arduino application window? This is where you choose the Board type and Serial Port with the Arduino > Tools> Board and Arduino > Tools  >Serial Port  menu.  If you cannot upload and run the sketch, check out "Getting Started w/ Arduino on Windows" and "The Arduino Pro" Web pages on the Arduino web site. There is an issue with Automatic (Software) Reset when using various FTDI or breakout boards that may be encountered. The procedure to deal these problems can be found on the Sparkfun web site under Arduino Pro/Getting Started. There is no point in trying to do anything with LabVIEW until you can run some sketches from the Arduino examples.  

Now, you can upload the LIFA sketch to your Arduino using the Arduino IDE Serial Monitor. Be sure to choose the correct board and port before downloading LIFA. I use LabVIEW 2011 PDS, NI-VISA 5.1 and have the LabVIEW Interface for Arduino v2.1.1.69 in my VI Package Manager. 

In your VI, you can select either Uno or Dimuelanove (even though the name is spelled wrong) for the Arduino Resource in the Init.vi. It doesn't matter which one you choose unless you are using some variant of the Mega. Be sure to use the default baud rate of 115200 and leave everything else at default.  Close the Arduino Serial Monitor before you try to communicate with LabVIEW.

Following this procedure, I've been able to use LIFA with FIO, UNO, Duemilanove, Diecimila and Nano with no problems. Although there are some small differences between the boards, these boards will all work with the LIFA without modification. By editing the LIFA firmware, you can access the different capabilities of the boards.

I took a quick look at the VI in the youtube video. It won't work as presented. One needs to add the Digital Pin Mode.vi to enable the LED for writing. The VI is also highly inefficient since it iterates several hundred times a second just to check if you clicked on a switch. On each iteration, a message is sent to and from the Arduino. When it runs, it takes more than 30% of the processor time. You could put a Wait in the While loop but a better way to do this is to use an event structure and only send a message to Arduino when you actually want to do something. 

JohnCS

Download All
0 Kudos
Message 9 of 10
(4,646 Views)

Hey JohnCS,

This post was extremely helpfull to me. I am using an arduino fio board currently and have succesfully uploaded the LIFA sketch to the board. The only adjustment I made was to change the baud rate in the LabVIEWInterface.h file part of the LIFA sketch to 9600 as I was told I needed to do this so that I can control the board through Xbee connectors. One Xbee connector is on the arduino fio board which is not connected to the computer and the other is connected to the computer through a use dongle. You had mentioned that you had worked with the fio and it appeared you may know the exact changed to make to the LIFA sketch so that the board functions perfectly. I understand that it should work for the most part when I set it up selecting either the UNO or Duemilanove/ mg328 options. I was wondering also if one of these two options functioned better with the FIO if you dont have time to explain the changes I can make to LIFA such that it functions perfectly?

I completely understand that the issues arise from the slight pin differences, but I am going to be utilizing nearly all of the pins so I would love to have it functioning perfectly. Seeing that you have successfully worked with the fio I would love to hear if it was done by directly wiring the board to the computure through a FTDI cable or if it was through Xbee. If you did in fact use Xbee's to communicate with the Fio board I would love any advice you can give me on BAUD rate settings Including:

All Xbee Module Settings through XCtu?

LabVIEWInterface.h changes within the LIFA sketch?

BAUD rate setting either in the ini.vi or in custom vi's

I greatly appreciate any information you can give me regarding these issues.

Much appreciated,

Dan

0 Kudos
Message 10 of 10
(4,646 Views)