LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

LIFA - Ethernet

I believe it is located here 

(path to zip file)/LabVIEW Interface for Arduino - Ethernet Folder\Program Files\National Instruments\LabVIEW 2012\vi.lib\LabVIEW Interface for Arduino

I know that the paths are confusing, I don't know how to make it easier to navigate.  any help would be greatly appreciated. 

Matt

0 Kudos
Message 11 of 56
(6,240 Views)

Error in LV2012 "Copy of LabVIEW Interface for Arduino - Ethernet.lvlib" is corrupt.

1) Share this library again

2) maybe problem is in long name (path and name of file), you can try rename this library in LV (save as) to "LIFA-Ethernet"

Martas

0 Kudos
Message 12 of 56
(6,240 Views)

can somehow please help out a bit on how to get this to work

0 Kudos
Message 13 of 56
(6,240 Views)

Good and bad news.

So I've officially given up trying to figure out how the whole library thing works...  Sorry guys. 

I have created a zip file which is my entire modified LIFA folder.  The link is https://dl.dropboxusercontent.com/u/60210515/LIFA-Ethernet.zip 

Can someone who knows the inner workings of NI libraries better than I get these up and running?

Matt

0 Kudos
Message 14 of 56
(6,240 Views)

Could you give me a list of all the VI's that you changed?

0 Kudos
Message 15 of 56
(6,240 Views)

The list is

Init (contains a new VI in it too "Find Arduino" with a new image on it), Send Receive (containts a new VI in it too "Refind Arduino"), and check for pin out of range. 

I've also wrote a few scripts which help my main project out. 

Load FZI - can be used with a slider bar and 2 boolean variables to control an H bridge

ServoControl - can be used with a slider bar and 2 boolean variables to control a servo

Analog write - fakes analog as digital input.

Also, I've added more commands to the list in LV.

and I think that covers most stuff.

Matt

0 Kudos
Message 16 of 56
(6,240 Views)

Out of curiosity, has anyone made any progress getting this to work?

0 Kudos
Message 17 of 56
(6,240 Views)

A possible solution for this problem, or a workaround, is to use a USB Sharing Station:

As many posts in several forums already stated the LabVIEW Interface for Arduino Toolkit 

is not setup to support communication via ethernet. It only supports serial communication

via Xbee or USB.

The problem that I encountered is that the communication between Computer/Labview and a

moving 6 wheel robot controlled by an Arduino via Xbee is getting verly slow when at the

same time a wireless network with an IPcamera is used.

Therefore I wanted to communicate with the Arduino also via ethernet.

One idea to solve this problem is to use a wireless USB sharing station as part of an

existing wireless network.

The setup and configuration I used are described below.

 

Desktop PC with:

    Windows 7,

    Netgear WNA3100 N300 Wireless USB Adapter

    Labview student edition 2011 installed

    Arduino software incl. driver installed

Wireless Network with:

    Router Linksys WRT54GL

    IOGEAR Wirless 4-Port USB Sharing Station GUWIP204

here are the steps I followed for installation:

1. Upload the LIFA to the Arduino while it is connected via USB cable to one of the

    computers USB ports. I am using an Arduino Uno.

2. Setup your network with a wireless router, if not already done.

3. Install the USB Sharing station as described in the manufacturer's setup instructions.

     Use the Arduino as USB device and connect the USB port of the Arduino to one of the

     USB ports of the USB Sharing Station.

4. Open the IOGEAR Wireless USB Sharing Station software once the installation is completed.

    The IOGEAR software will recognize the Arduino.

IOGEAR setup1a.jpg

5. The Arduino has to be connected manually to a port, using the IOGEAR software.

IOGEAR setup2a.jpg

6.Check in the Windows device manager which port has been assigned to the Arduino.

wireless network_a.jpg

7. Update the  labiew  vi and set it to the correct USB port and speed.

    Run your vi, application,....

labview config_a.jpg

This approach works fine for me, I even have some ports left that allow me to connect

more USB devices on my robot.

Christoph

0 Kudos
Message 18 of 56
(6,240 Views)

HEY TO ALL!! SINCE 2 MONTHS I WAS TRYING TO CONNECT THE ARDUINO VIA ETHERNETH AND CONTROLLING FROM LABVIEW AND ALL MY INTENTS HAVE FAIL............ LAST NIGHT I FOUND THIS FORUM AND I TRIED ALL THE STEPS THAT UKE88 SHARED TO US, BUT I HAD A PROBLEM WITH THE SUB.VI AND THE ARDUINO IN, THE PWM PORT........ I DONT KNOW WHY, SO SEARCHING TO HOW CAN I CONNECT THE LABVIEW VIA ETHERNET SO I FOUND A SOFTWARE CALLED "TCP-COM" THAT IS A PROGRAM THAT CONVERTS THE RS-232 TO TCP/IP PROTOCOL. I JUST HAVE TEST IT AND ALL MY PROBLEMS GET RESOLVED!!!

WITH THIS PROGRAM, I SUCCESSFULLY CONNECT LABVIEW TO MY ARDUINO MEGA 2560 VIA ETHERNET SHIELD. I SIMPLY USE THE LIFA_BASE_ETHERNET THAT UKE88 SHARED AND INSTALL THE PROGRAM TCP-COM.

THE ARDUINO IS CONNECTED WITH A ROUTER WITH A ETHERNET CABLE AND MY PC IS CONNECTED TO THE ROUTER VIA WIFI. JUST PUT A CORRECT IP ADDRES AND MAC ADDRES FROM THE ETHERNET SHIELD IN THE ARDUINO SKETCH, IN THE TCP-COM CREATE A VIRTUAL SERIAL COM, USE THE PC AS TCP CLIENT, PUT THE ARDUINO IP ADDRES THAT YOU WRITE IN THE SKETCH, IN THE I/O OPTIONS CHECK "ALLOW COMPLETE 2-WAY" AND THE PORT I USE WAS 80.

BASICALLY THATS ALL I DID TO COMUNICATE THE ARDUINO TO LABVIEW VIA ETHERNET.

IF ANYONE IS INTERESTED IN THIS OPTION I LEAVE THE LINK TO DOWNLOAD THE PROGRAM. IT'S A EVALUATION PROGRAM FOR 30 DAYS.

http://www.taltech.com/support/downloads/tcpcom

GREETINGS FROM EL SALVADOR

Message 19 of 56
(6,240 Views)

matt, i cant get access to this drop box link, any help?

0 Kudos
Message 20 of 56
(6,240 Views)