LabVIEW Interface for Arduino Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Can't get LIFA_Base to compile in Arduino 1.0.4

When I open LIFA_Base 1.0.4 in Ardunio 1.0.4 and try to download it, I get the following compile errors

LIFA_Base.cpp.o: In function `loop':
C:\_VIA\Arduino\arduino-1.0.4/LIFA_Base.ino:59: undefined reference to `checkForCommand()'
C:\_VIA\Arduino\arduino-1.0.4/LIFA_Base.ino:65: undefined reference to `sampleContinously()'
LIFA_Base.cpp.o: In function `setup':
C:\_VIA\Arduino\arduino-1.0.4/LIFA_Base.ino:39: undefined reference to `syncLV()'

This is the first time I am trying to get the Arduino Uno to run LabView for Arduino.  I have successfully downloaded and run the sample program that flashes the "L" Led so I know the compiler works.  Where are the unidentified references coming from?

Message 1 of 25
(23,281 Views)

It looks like the Arduino IDE didn't properly open all of the LIFA firmware files.  You need to make sure that the IDE opens all of the file in the firmware folder.

0 Kudos
Message 2 of 25
(6,392 Views)

How do I know which files need to be open?  The header file containing the functions listed in the error is open in another tab.  Is there some way to look at a project file to see what is missing?  Are there other compilers besides the Arduino 1.0.4 I could try?

0 Kudos
Message 3 of 25
(6,392 Views)

All files in the firmware folder should be loaded in the tabs (except for the .txt files).  In the Arduino IDE, go to File > Open and browse to the LIFA_Base folder (C:\Program Files (x86)\National Instruments\LabVIEW <year>\vi.lib\LabVIEW Interface for Arduino\Firmware\LIFA_Base) and open LIFA_Base.ino.

I was able to re-create the error by removing LabVIEWInterface.ino.

0 Kudos
Message 4 of 25
(6,392 Views)

I have same problem!!

Need help.

0 Kudos
Message 5 of 25
(6,392 Views)

Hey!

I fixed it!!

You must add the file "\LIFA_Base\LabVIEWInterface\LabVIEWInterface.ino".

From sketch->Add

Regards

Message 6 of 25
(6,392 Views)

Nathan B says: "All files in the firmware folder should be loaded in the tabs (except for the .txt files).  In the Arduino IDE..."

Really? There are 2 .ino files, 5 or 6 .h library files, 3 .cpp files in the LIFA_Base folder on my Mac:

    [LabVIEW 2012/vi.lib/LabVIEW Interface for Arduino/Firmware/LIFA_Base/...]

All of these are supposed to be open in the IDE? Only one sketch at a time can upload to the Arduino board, so how is having 10 or 12 tabs open going to work? Does the IDE automatically add in the other sketches and libraries if they are open as tabs? OR as user fxstc said above, are you supposed to manually do sketch ->Add with the 2 .ino's?

0 Kudos
Message 7 of 25
(6,392 Views)

If you open the .ino file that is named the same as the folder, it should open all other related files in tabs in the Arduino IDE.  You should not have to open all the files individually.  I've always opened LIFA_Base.ino and never had issues.

0 Kudos
Message 8 of 25
(6,392 Views)

Thanks Nathan B, I tried exactly that and it worked. Just opening the __Base.ino automatically opened all the other relevant files in tabs. Compiled OK. I've not tried uploading it yet, but expect it will be fine.

I don't know why so many others are having compiling errors, but I must admit the main Document for installing LIFA is woefully out of date, giving confusing path and file names and not clarifying what you see in the IDE, as you just did. Also the video (by Michael__) showing LIFA installation in vishot.com, shows just 3 files open in tabs, instead of the 12 I saw. Getting both these instructions up to date would help a lot of people.

0 Kudos
Message 9 of 25
(6,392 Views)

Hello

I am trying to compile (V1.5.3) LIFA-Base but get the following error

"C:\Program Files (x86) \Arduino\libraries\RobotIRremote\IRemoteTools.ccp:5: error: 'TKD2' was not declared in this scope"

The compiler is fine uploading example files to the mega 2560 but gives the above when trying to compile LIFA_Base

0 Kudos
Message 10 of 25
(6,392 Views)