04-02-2013 02:14 PM
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?
04-02-2013 09:14 PM
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.
04-03-2013 05:00 AM
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?
04-03-2013 09:05 AM
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.
04-23-2013 12:26 AM
I have same problem!!
Need help.
04-23-2013 12:42 AM
Hey!
I fixed it!!
You must add the file "\LIFA_Base\LabVIEWInterface\LabVIEWInterface.ino".
From sketch->Add
Regards
06-08-2013 07:38 PM
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?
06-08-2013 11:38 PM
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.
06-09-2013 10:02 AM
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.
09-05-2013 11:05 AM
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