LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Arduino MEGA 2560

hello,

I want to ask if someone has the LIFA_Base for the Arduino MEGA 2560, in which I can control all I/O because now I can only control the I/O that are common between the MEGA and the UNO.
Thanks

0 Kudos
Message 1 of 7
(6,039 Views)

All I/O are accessible on both Uno and Mega with the default LIFA.  Simply wire a U8 integer to the pin input on the VIs.

0 Kudos
Message 2 of 7
(4,039 Views)

but in the LabVIEWInterface.ino there is only
  int pin0 = analogRead(0);

  int pin1 = analogRead(1);

  int pin2 = analogRead(2);

  int pin3 = analogRead(3);

  int pin4 = analogRead(4);

  int pin5 = analogRead(5);

0 Kudos
Message 3 of 7
(4,039 Views)

So you are specifically asking about Analog Read Port.vi?  Like I said above, all pins are accessible by LabVIEW however both Analog Read Port.vi and Digital Read Port.vi are both for the Uno.  This means that it requires customization to get these two VIs to read/write all the pins.  I have already created a modification (new LIFA function) for the Digital Read Port for the Mega here.  This can be done similarly for the Digital write and analog read port functions.

0 Kudos
Message 4 of 7
(4,039 Views)

ok, thanks a lot for you help

0 Kudos
Message 5 of 7
(4,039 Views)

hii
it don't work with me

0 Kudos
Message 6 of 7
(4,039 Views)

LIFA is no longer supported.  You should use LINX.

0 Kudos
Message 7 of 7
(4,039 Views)