From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, 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: 

Unable To Compile/Upload LIFA_Base onto Arduino Uno

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

0 Kudos
Message 1 of 19
(12,767 Views)

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.

0 Kudos
Message 2 of 19
(5,420 Views)

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. 

0 Kudos
Message 3 of 19
(5,421 Views)

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

0 Kudos
Message 4 of 19
(5,421 Views)

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).

Message 5 of 19
(5,421 Views)

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.

Message 6 of 19
(5,421 Views)

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

0 Kudos
Message 7 of 19
(5,421 Views)

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

0 Kudos
Message 8 of 19
(5,421 Views)

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"

0 Kudos
Message 9 of 19
(5,421 Views)

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

Message 10 of 19
(5,421 Views)