From 04:00 PM CDT – 08:00 PM CDT (09:00 PM UTC – 01:00 AM UTC) Tuesday, April 16, 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: 

error uploading LVIFA_BASE.PDE into Mega 2560

Hello everybody,

I am new at this with labview so please don't flame me right away. I followed the installation instructions and got to the point where I need to upload my LVIFA_BASE. PDE into my Mega 2560. During upload I get the errors as seen in the attached picture. I tried it several times but no luck. In Labview I can see the Arduino exmples etc but I can simply not get the base.pde uploaded into my Mega.

Any ideas? Running W7 pro, Labview 2012 Student version and I tried both the new Arduino 1.5.2.2 and the older one 1.0.3. both with the same results.

Thanks in advance,

TTLIFA upload error.JPG

0 Kudos
Message 1 of 10
(9,691 Views)

The first thing that I notice is that you must have an old version of LIFA.  The latest version of LIFA does not have any .pde files (they are now .ino) and there is no file called LVIFA_Base, it is called LIFA_Base.ino.

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

Good observation, my mistake to write .pde since that was the extension the instruction mentions. Windows does not show the extension so I assumed it was .pde but you are correct, the actual file extension is .ino

I have downloaded LIVA_BASE_2012_BUILD_79 and inside I find the LIVA_BASE.INO and this version seems to be from 23rd of July 2012. this file gives me the errors when I try to upload it to my Mega 2560 R3. The error actually already happens when I just try to compile it and not even try to upload it. I tried an older Arduino IDE with the same results. I tried to change the board to Uno, same results.

Any ideas? I would really like to see this working - lots of potential with Labview and Arduino talking to each other. I would like to move from Processing to Labview.

Thanks,

TT

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

Can you post the entire text output from when you try to compile the LIFA firmware?

Thanks,

-Sam K

LIFA Developer

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

FYI just confirm that this works in Arduino 1.03. 

Have you modified the code at all?  Either way post the compile output and we'll take a look at it.

-Sam K

LIFA Developer

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

Hello Sam,

Thank you for your feedback. Attached picture shows where it goes wrong and below is what goes wrong:

C:\Users\jbos\Documents\Arduino\libraries\myLCDSketchlibrariesLCD/LiquidCrystal.h: In function 'void processCommand(unsigned char*)':
C:\Users\jbos\Documents\Arduino\libraries\myLCDSketchlibrariesLCD/LiquidCrystal.h:136: error: 'void LiquidCrystal::init(uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t, uint8_t)' is private
LabVIEWInterface:362: error: within this context

Appears to me that there is something wrong with library Liquidcrystal library. This is on Arduino 1.0.3. I get exactly the same error on Arduino 1.5.2.2. I will try to upload the LIFA_base later today on a different computer, see what happens.LIFA upload error 3.JPG

The file location where the .,ino ends up as in the second picture. File is not modiefied or copied to other locations. I tried both xx.69 and xx.79 with the same results.

LIFA upload error 4.JPG

I never used any LCD with the Arduino's I have, all is currently going through Processing but I would like to give LV a shot due the complexity of the Processing code and the limitations of it.

Thanks again,

TT

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

Hello everybody,

Problem is solved, it was indeed the LiquidCrystal library that was causing the errors. I firstly replaced the LiquidCrystal library with a new freshly downloaded version and the problem went away. To be sure I have a clean install, I completely uninstalled the Arduino IDE and removed all libraries etc. Re-installed it and it compiles fine now. Not sure why it was giving me these errors with the LiquidCrystal library is a mystery to be solved but once I cleaned it all up it worlks like a champ.

Thanks for your help and till next time.

TT

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

Hey,

I'm doing exact same thing. I'm using mega2560(mega pro 3.3v, https://www.sparkfun.com/products/10744) and trying to upload the LIFA to the board. I'm using LIVA_BASE_2012_BUILD_79 as well.

My arduino version is 1.0.4. But what I get as an error is this.(pic1). Can anyone tell me the reason please?

Also, I'm using FTDI and USB cable to connect PC with my mega proboard. I've updated the driver(http://arduino.cc/en/Guide/Windows, FTDI section)

but device manager just says USB serial port after updating the driver while I think it should state mega pro or something(pic2). Is that normal?

If there is something I'm doing incorrectly, please let me know thanks.

Download All
0 Kudos
Message 8 of 10
(4,248 Views)

Looks like your PC is not recognizing your Arduino at all. Can you download the Blink sample in the Mega and see if this works? Attached picture shows my Mega connected on Com 9.

TT

com port.JPG

0 Kudos
Message 9 of 10
(4,248 Views)

If i using uno R3, do i need to modify the arduino labview firmware?

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