LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

[VISA Clear in LabVIEW Interface for Arduino.lvlib:Init.vi] ERROR HELP!

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~

 

0 Kudos
Message 1 of 12
(8,814 Views)

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?

 

Greetings and Regards,
James
0 Kudos
Message 2 of 12
(8,769 Views)

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.

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 3 of 12
(8,755 Views)

Also LIFA was deprecated years ago and replaced with LINX 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 4 of 12
(8,747 Views)

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.

Download All
0 Kudos
Message 5 of 12
(8,732 Views)

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

0 Kudos
Message 6 of 12
(8,730 Views)

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

0 Kudos
Message 7 of 12
(8,729 Views)

It sounds like if you're sure you have the correct COM port, the remaining possibility is that you didn't flash the Arduino with the correct firmware. I expect this is easier to do with a different tool (like the Arduino desktop application).


GCentral
0 Kudos
Message 8 of 12
(8,725 Views)

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.

0 Kudos
Message 9 of 12
(8,722 Views)

Take these tutorials on Linx usage.  (They are actually pretty awesome.)

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 10 of 12
(8,716 Views)