cancel
Showing results for 
Search instead for 
Did you mean: 

Unable To Compile/Upload LIFA_Base onto Arduino Uno

free_fury
Member

Unable To Compile/Upload LIFA_Base onto Arduino Uno

Message contains an attachment

Hey guys, so I have been trying to upload the LIFA_Base file onto my Arduino Uno for the past week now and it gives me the same error every single time. Here are the following messages I recieved. I tried adding LabVIEW interface to the LIFA_Base sketch, and these are the resulting messages. I am a MacBook User. I have attached a screenshot to show what happens when I try to solely upload LIFA_Base.

LIFA_Base.ino:26:31: error: LabVIEWInterface.h: No such file or directory

LIFA_Base.ino: In function 'void loop()':

LIFA_Base:63: error: 'acqMode' was not declared in this scope

LabVIEWInterface.ino: In function 'int checkForCommand()':

LabVIEWInterface:97: error: 'COMMANDLENGTH' was not declared in this scope

LabVIEWInterface:103: error: 'currentCommand' was not declared in this scope

LabVIEWInterface:105: error: 'currentCommand' was not declared in this scope

LabVIEWInterface.ino: In function 'void processCommand(unsigned char*)':

LabVIEWInterface:463: error: 'acqMode' was not declared in this scope

LabVIEWInterface:464: error: 'contAcqPin' was not declared in this scope

LabVIEWInterface:465: error: 'contAcqSpeed' was not declared in this scope

LabVIEWInterface:466: error: 'acquisitionPeriod' was not declared in this scope

LabVIEWInterface:467: error: 'iterationsFlt' was not declared in this scope

LabVIEWInterface:468: error: 'iterations' was not declared in this scope

LabVIEWInterface:473: error: 'delayTime' was not declared in this scope

LabVIEWInterface:483: error: 'FIRMWARE_MAJOR' was not declared in this scope

LabVIEWInterface:484: error: 'FIRMWARE_MINOR' was not declared in this scope

LabVIEWInterface.ino: In function 'void syncLV()':

LabVIEWInterface:730: error: 'DEFAULTBAUDRATE' was not declared in this scope

LabVIEWInterface.ino: In function 'unsigned char checksum_Compute(unsigned char*)':

LabVIEWInterface:741: error: 'COMMANDLENGTH' was not declared in this scope

LabVIEWInterface.ino: In function 'int checksum_Test(unsigned char*)':

LabVIEWInterface:752: error: 'COMMANDLENGTH' was not declared in this scope

LabVIEWInterface.ino: In function 'void sampleContinously()':

LabVIEWInterface:793: error: 'iterations' was not declared in this scope

LabVIEWInterface:795: error: 'contAcqPin' was not declared in this scope

LabVIEWInterface:796: error: 'contAcqSpeed' was not declared in this scope

LabVIEWInterface:799: error: 'delayTime' was not declared in this scope

LabVIEWInterface:805: error: 'delayTime' was not declared in this scope

LabVIEWInterface.ino: In function 'void finiteAcquisition(int, float, int)':

LabVIEWInterface:812: error: 'acquisitionPeriod' was not declared in this scope

18 REPLIES 18
Nathan_B.
Active Participant

Re: Unable To Compile/Upload LIFA_Base onto Arduino Uno

When you open LIFA_Base.ino through the Arduino IDE, it should open all files that are in the folder including LabVIEWInterface.ino and LabVIEWInterface.h (all in tabs).  If not all of these files open, this will cause these types of errors in my experience.

free_fury
Member

Re: Unable To Compile/Upload LIFA_Base onto Arduino Uno

Yeah I realized that was a problem. So I added the LabVIEWInterface file to the LIFA base by using "add sketch". I don't know why it's still giving me this problem. I installed the latest drivers, and have the toolkit on LabView. I also noticed that I do not have a tab labeled LabVIEWInterface.h, is it posible for someone to send me the Mac Version of this file? I possess the rest of the tabs. 

free_fury
Member

Re: Unable To Compile/Upload LIFA_Base onto Arduino Uno

is it possible for anyone to give me the LabVIEWInterface.h file for the mac? I lack that one. Please?

Nathan_B.
Active Participant

Re: Unable To Compile/Upload LIFA_Base onto Arduino Uno

That file is not OS dependent.  It is located in the LIFA Firmware folder.  If it's not there, you probably need to re-install LIFA (or maybe check your recycle bin).

jeremiahb
Member

Re: Unable To Compile/Upload LIFA_Base onto Arduino Uno

What version of the IDE are you using? I know the latest version has a few known compiling bugs. I too have been having the same problem. I'm extracing 1.0.5 right now to see if it has to do with the version. Be back in 20 minutes when it's done extracting.

jeremiahb
Member

Re: Unable To Compile/Upload LIFA_Base onto Arduino Uno

Message contains an image

Yes it has to do with the version. Download 1.0.5 It compiled just fine for me. Proof Below.54198.PNG

free_fury
Member

Re: Unable To Compile/Upload LIFA_Base onto Arduino Uno

where can I download the LIFA_Base? Thanks guys for all the help.

Nathan_B.
Active Participant

Re: Unable To Compile/Upload LIFA_Base onto Arduino Uno

It comes with LIFA when you install it.  You simply browse to "<program files>\National Instruments\LabVIEW XXXX\vi.lib\LabVIEW Interface for Arduino\Firmware\LIFA_Base"

free_fury
Member

Re: Unable To Compile/Upload LIFA_Base onto Arduino Uno

Message contains an image

Hey Guys! So I ended up removing arduino entirely and removed the toolkit as well. Then, I simply reinstalled everything and it worked like a charm! Thanks everyone!!!! You guys rock