LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Read error (VISA: (Hex 0xBFFF0015) Timeout expired before operation completed) in VI Test panel while connecting Arduino.

Solved!
Go to solution

Greetings there,

 

I am new to LabVIEW and forums. I am trying to connect my Arduino to LabVIEW for which I came to know that I first should check the I/O communication in VISA Test Panel. I connected Arduino Due and Arduino UNO, separately, and tried to test the command (*IDN?\n) which is already mentioned. But with every Arduino, everytime this error comes up (VISA: (Hex 0xBFFF0015) Timeout expired before operation completed). I tried with different Baud rate, stop bits, parity settings, changing cables, increassing the timout time, but nothing worked. 

 

Arduinos are working fine  with Arduino IDE and are being detected properly.  

 

What should I do? Please Help.

0 Kudos
Message 1 of 7
(184 Views)

@A.S.H wrote:

Greetings there,

 

I am new to LabVIEW and forums. I am trying to connect my Arduino to LabVIEW for which I came to know that I first should check the I/O communication in VISA Test Panel. I connected Arduino Due and Arduino UNO, separately, and tried to test the command (*IDN?\n) which is already mentioned. But with every Arduino, everytime this error comes up (VISA: (Hex 0xBFFF0015) Timeout expired before operation completed). I tried with different Baud rate, stop bits, parity settings, changing cables, increassing the timout time, but nothing worked. 

 

Arduinos are working fine  with Arduino IDE and are being detected properly.  

 

What should I do? Please Help.


An Arduino will NOT respond to an IEEE common command query like *IDN?  

 

Unless of course you program it to do so. 

 

The Arduino IDE is made specifically for Arduino's and is doing some kind of chip ID. It is not using IEEE commands like VISA communicating with an IEEE 488.2 compliant piece of test equipment.

 

 

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 2 of 7
(178 Views)

Thank you for your reply.

 

Okay, so can I begin writing LabVIEW programs straightaway? Or is there any other command which will serve as a test to confirm the communication between Arduino and LabVIEW?

0 Kudos
Message 3 of 7
(172 Views)
Solution
Accepted by topic author A.S.H

@A.S.H wrote:

Thank you for your reply.

 

Okay, so can I begin writing LabVIEW programs straightaway? Or is there any other command which will serve as a test to confirm the communication between Arduino and LabVIEW?


Yes, VISA can communicate with an Arduino just like any instrument on a serial port. Here's my prefab answer to using LabVIEW with an Arduino 

 

In general there are three ways of using LabVIEW with an Arduino

 

  1. Program the Arduino in the native Arduino language.
    1. LabVIEW can communicate with an Arduino using VISA just like any other instrument on a serial port.
    2. IMHO: This is the best way as you have full control over the communications protocol and you can use any of the of Arduino libraries and LabVIEW toolkits that are already out there.
    3. I highly recommend watching this video on serial communications: VIWeek 2020/Proper way to communicate over serial
  2. Use LINX (Hobbyist Toolkit or whatever they are calling it now)
    1. Full LabVIEW integration, but limited amount of Arduino libraries and peripherals directly supported
    2. The Arduino basically becomes a tethered DAQ device that needs to be connected to a computer/LabVIEW to work
  3. TSXperts Arduino compiler for LabVIEW
    1. Actually turns LabVIEW into compiled Arduino code. (A real feat on its own)
      1. Limited subset of LabVIEW vi's and primitives
      2. Very limited support for Arduino libraries 
      3. Development seems to have stopped, so those annoying bugs are here to stay
========================
=== Engineer Ambiguously ===
========================
Message 4 of 7
(163 Views)

Thank you so much!!!

 

I will try to make LV programs and test through Serial communication only. Let's see what happens 🙂

0 Kudos
Message 5 of 7
(154 Views)

Screenshot 2025-05-14 145231.png

 

Looks like TSXperts is totally dead now.

0 Kudos
Message 6 of 7
(106 Views)

You can still get it from NI Arduino™-Compatible Compiler for LabVIEW

========================
=== Engineer Ambiguously ===
========================
0 Kudos
Message 7 of 7
(40 Views)