labview does not work with LIFA_base uploaded with Arduine 1.8.6 or higher

we have the next configuration:

Arduino Uno connected to a PC with Windows 10
LabVIEW National Instruments 2018

If we use Arduino 1.8.5 or lower and compile and upload LIFA_Base to our Arduino Uno then the communication works fine.

if we do the same with Arduino 1.8.6 or higher then we got the next error message:

[error message]
Error 5003 occurred at LabVIEW Interface for Arduino.lvlib:Digital Write Pin.viLabVIEW Interface for
Arduino.lvlib:Set Digital Pin Mode.viLabVIEW Interface for Arduino.lvlib:Init.vi.
A timeout occurred while trying to read form the Arduino.

This error code is undefined.
Undefined errors might occur for a number of reasons.
For example, no one has provided a description for the code,
or you might have wired a number that is not an error code to the error code input.

Additionally, undefined error codes might occur because the error relates to a third-party object,
such as the operating system or ActiveX. For these third-party errors,
you might be able to obtain a description of the error by searching
the Web for the error code (5003) or for its hexadecimal representation (0x0000138B).
[/error message]

regards,

Wijnand

(deleted)

Hi,

I got the same error with Labview 2018 and Arduino-IDE 1.8.9

After changing the Arduino-IDE to 1.8.6 it works fine.
I repeat this scenario several times. with the same result.

The Error:
After starting a simple VI I got the Error 5002 or 5003 after 30 sec.
A green arrow appears on the INIT-VI in Labview.

My question: what is wrong with the Arduino-IDE 1.8.9 ????

kind regards

Christoph


wdm2n:
we have the next configuration:

Arduino Uno connected to a PC with Windows 10
LabVIEW National Instruments 2018

If we use Arduino 1.8.5 or lower and compile and upload LIFA_Base to our Arduino Uno then the communication works fine.

if we do the same with Arduino 1.8.6 or higher then we got the next error message:

[error message]
Error 5003 occurred at LabVIEW Interface for Arduino.lvlib:Digital Write Pin.viLabVIEW Interface for
Arduino.lvlib:Set Digital Pin Mode.viLabVIEW Interface for Arduino.lvlib:Init.vi.
A timeout occurred while trying to read form the Arduino.

This error code is undefined.
Undefined errors might occur for a number of reasons.
For example, no one has provided a description for the code,
or you might have wired a number that is not an error code to the error code input.

Additionally, undefined error codes might occur because the error relates to a third-party object,
such as the operating system or ActiveX. For these third-party errors,
you might be able to obtain a description of the error by searching
the Web for the error code (5003) or for its hexadecimal representation (0x0000138B).
[/error message]

regards,

Wijnand

Hello, everybody,

I had the same problem and installed an older Arduino version (1.8.6). But it still did not work.

I found the answer in the National Instrument Forum and it is actually a problem in the Arduino file that you have to upload to your arudino before you start LabVIEW.

To make it work, follow these steps:

  • Open the file "LIFA_BASE-LabVIEWInterface.ino" in your Arduino IDE
  • Go to the tab "LabVIEWINterface" and look for "Checksum".
  • initialize the variable checksum to 0 (checksum = 0;)
  • Save the code and load it back onto your arduino

The credit belongs to the VIMaster user in the NI forum.

Greetings,

Olschid

Translated with DeepL Translate: The world's most accurate translator (free version)