LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

LIFA - Ethernet

I had this problem a while back because I haven't worked with my code in a while.  They main problem I had was that I needed to choose the correct IP on Arduino side and port number - i used 192.168.1.77 with port 80 as my Arduino - and you need to create a visa via NI MAX which is the Arduino's IP AND Port number.  In my later code, I've wrote an auto forumate Visa script. 

This is a link to a drop box file which has the VI I use to make a TCP VISA.  I found the code somewhere in the forums and I changed it to fit my need.  Basically, the only thing you need to do is add a host name (xxx.xxx.xxx.xxx) and it will create that as a VISA working on port 80.  I use this VI to check if the IP being entered is in the VISACONF.ini file.  If the VISA exisits, then the second loop skips over and doesn't create another Visa, if it's not, then the second loop creates a VISA and stores it in VISACONF.ini.  Hope it helps.

https://dl.dropboxusercontent.com/u/60210515/Create%20VISA.vi

Again, this code works for me, I made it for one of my aplications and tried to release the base of my code - quite horribly from the looks of it - and Sammy_K has released LIFA code that works over eathernet and can be found https://www.labviewhacker.com/doku.php?id=libraries:linx:linx.  It's called LINX and I personally havent worked with it, but I'm assuming its well documented and be worked with easier than my code. 

Message 31 of 56
(3,506 Views)

I would recommend that you go over to the LINX forum (labviewhacker.com) and request this feature (so that Sammy knows how many people want it for Arduino, maybe this will motivate him to work on it ). 

Message 32 of 56
(3,506 Views)

thanks for your recommend,

0 Kudos
Message 33 of 56
(3,506 Views)

ok, i will try it.

can you share tutorial about your project ?  i want to compare it with my result

0 Kudos
Message 34 of 56
(3,506 Views)

I can try with a simple project, like a push button to turn on and off a light.

Only problem is that I'm basically self taught (I learned via Sammy_K's LIFA code and google) and I really have no idea how to release the code.  I can build an executable and installer (kinda, I'm not too sure if that also gives over the sub VI's or not).  So If someone can show me how to realease a VI with the sub VI's, I can do that.

Matt

0 Kudos
Message 35 of 56
(3,506 Views)

Hi,

I also tried the VI and on the first run, it appears to have an error (as it is just downloaded) and one need to "Disconnect from the Library) before it may run.

Minor issue.

Regards

Barddya

0 Kudos
Message 36 of 56
(3,506 Views)

ok, did you try use tcp connection with arduino to labview ?

0 Kudos
Message 37 of 56
(3,506 Views)

hello

im trying to connect arduino uno with ethernet shield though ethernet and labview; but im retarded and in 5 hours working on this I could not figure out; I installed the LINX and LIFA-Ethernet on my computer; I just want a labview program that turns on the LED on the Arduino without a USB hooked up. im powering the Arduino to 5V adaptor and i want all the comunitaion being done through the ethernet

thanks

0 Kudos
Message 38 of 56
(3,506 Views)

The LIFA Ethernet that is posted here has had mixed success.  There are plans to add ethernet communication capabilities for Arduino to LINX (which is the only officially supported module for integrating Arduino with LabVIEW).  You should post on the LINX forums so that Sam knows the level of interest for this feature.

0 Kudos
Message 39 of 56
(3,506 Views)

uke88 congratulate you for your work and you want to share your work. I do not understand because you do not help us a bit more as we struggled to implement the modification LIFA in LV

0 Kudos
Message 40 of 56
(3,506 Views)