07-06-2013 09:17 AM
Hi All,
I am able to upload LIFA_Base to the Arduino UNO in Labview 2010 but when I do the same with Labview 2012 I receive a compiling error. Thoughts? Is this not yet supported in 2012?
Thanks
Niels
07-06-2013 02:56 PM
Everything works perfectly fine in LabVIEW 2012. The version of LabVIEW does not affect LIFA (as long as you have at least 2009). The version of LIFA will affect which Arduino IDE will work though.
IIRC, the last version of LIFA to work before Arduino 1.0 was 1.3. If you have LIFA 2+ then you need to have Arduino 1.0 or later.
What version of LIFA do you have installed? What version of the Arduino IDE are you using?
07-06-2013 03:11 PM
I used the VI package manager to download the arduino stuff specifically for LV 2012. That being said, I think it is the same LIFA_base.ino file as if I do the same for LV 2010. Both appear to have been last saved July 22, 2012 and both say they were written by Sam Kristoff in Nov. 2010. The Arduino program that I am using is 1.0.5.
Thanks a lot.
07-06-2013 04:54 PM
Then what errors do you get when trying to upload the code with the Ardunio IDE?
Also, the latest version of LIFA was released on 31 Aug 2012. What version are you using? (it tells you in the package manager)
07-06-2013 05:11 PM
These were the errors:
LIFA_Base.cpp.o: In function `loop':
/Applications/LIFA_Base.ino:59: undefined reference to `checkForCommand()'
/Applications/LIFA_Base.ino:65: undefined reference to `sampleContinously()'
LIFA_Base.cpp.o: In function `setup':
/Applications/LIFA_Base.ino:39: undefined reference to `syncLV()'
The only version I see in the package manager is 2.2.0.79 although I looks like i can also install older versions.
On a slightly different note: I just tried to upload onto arduino the files that the package manager found for LV 2010 but then running LV 2012. As you essentially suggested before, this works fine. I suppose maybe there is a problem with the files downloaded for LV2012 with the package manager.
Thanks a lot
07-06-2013 05:51 PM
I just tested it with LabVIEW 2012 and I have no issues.
The errors that you posted happen most often when not all the files in the LIFA_Base folder are opened by the Arduino IDE. Make sure that all files (most specifically LabVIEWInterface.ino since they contain the function noted in the errors) are opened when you open LIFA_Base.ino.
So, once you have everything opening correctly in the Arduino IDE, it should work.
Let me know what you find out.
10-30-2014 12:04 PM
Hi Nathan,
I am having similar problem as Wheels. I am new using Arduino with Lab Veiw
I have installed following successfully.
“LIFA_Base.cpp.o: In function `setup':
C:\Program Files\Arduino/LIFA_Base.ino:39: undefined reference to `syncLV()'”
Note: I was able to compile blink LED sketch and seems working.
Your help will be greatly appreciated.
Thank you,
Samir
10-30-2014 12:17 PM
The Arduino IDE probably isn't opening all the appropriate files. Make sure
you have a bunch of tabs in the IDE.
10-30-2014 12:42 PM
Thank you very much for your quick response,
I see follwoing tabs
(1) AFMMotor.cpp (2) AFMotor.h(3)AccelStepper.cpp(4)AccelStepper.h(5)IRemote.cpp(6)Iremote.h(IremoteInt.h (7)LabViewInterface.h
I am not sure which tab I should lookout for.
Thank you very much,
Samir
10-30-2014 06:47 PM
All the files in the LIFA_Base folder should be open.
However, I recommend that you use LINX instead because LIFA is old and outdated. Requires LabVIEW 2011 or later. With LINX, you no longer need to compile the firmware yourself.