06-07-2017 01:36 AM
Encountered this error when I try to run a simple LED example vi.
Any solution for this error?
I am using a Arduino Uno board.
The board can be recognized as I can see it listed in the Device Manager.
I have installed the latest NI-VISA driver.
I have installed Labview Interface for Arduino and also LINX.
I have installed NI-SERIAL.
Any help is greatly appreciated~
06-07-2017 06:20 AM
Hello,
the error happens at VISA Clear,
This (VISA Clear) function clears the input and output buffers of the device.
It is difficult to analyze the error with a simple picture.
Could you please upload your code?
06-07-2017 08:16 AM - edited 06-07-2017 08:16 AM
I see in your picture that you have no VISA resource in the control. Either type in the correct COM port, use the dropdown menu to try and find it, or supply it programmatically.
06-07-2017 09:21 AM
Also LIFA was deprecated years ago and replaced with LINX
06-07-2017 09:30 PM
Hello James,
Thank you for the reply.
Now that I run the program again, I got a different error this time.
[Error: Init.vi. Unable to establish connection with Arduino. Please ensure that you have selected the correct COM port and that you have flashed the Arduino with the correct firmware.]
I can see the connection COM3 in the Devices and Interfaces section of the Measurement & Automation Explorer.
06-07-2017 09:33 PM
Hello Bill,
Thank you for the reply.
Still could not get the program to work. This time I got a different error.
[Error: Init.vi. Unable to establish connection with Arduino. Please ensure that you have selected the correct COM port and that you have flashed the Arduino with the correct firmware.]
06-07-2017 09:34 PM
Hello Bill,
Thank you for the reply.
Still could not get the program to run. This time, I got a different error.
[Error: Init.vi. Unable to establish connection with Arduino. Please ensure that you have selected the correct COM port and that you have flashed the Arduino with the correct firmware.]
06-08-2017 12:51 AM
06-08-2017 02:00 AM
I did run the LINX Firmware Wizard to load the firmware into Arduino.
Yes, everything works fine when I am using Arduino IDE but not when I am using Labview.
Thank you.
06-08-2017 08:30 AM
Take these tutorials on Linx usage. (They are actually pretty awesome.)