LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW program for controlling an LCD display using an Arduino Uno board

Solved!
Go to solution

Hello,

I want to create a LabVIEW program to control an LCD display using an Arduino Uno board. I already have the circuit of the board with the display, as shown in the image. However, I am running out of ideas on how to control it with LabVIEW. I would appreciate any help you can provide.

 

Sarhila123_1-1684131680533.jpeg

 

0 Kudos
Message 1 of 6
(1,783 Views)

Hi Sarhila,

 

implement the LCD display handling using the ArduinoIDE and add some message handling using the (virtual) serial port of your Arduino board.

On the host computer/LabVIEW side you can use VISA functions to exchange messages with your Arduino…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
Message 2 of 6
(1,780 Views)

I am working with LINX, and I will integrate thr LCD display into a project to show the results.

0 Kudos
Message 3 of 6
(1,771 Views)

Does LINX support I2C ? 

Do you know what to send to the display over I2C for it to work ? 

 

Best bet is that there is a driver/library in Arduino IDE that can handle the display. 

Message 4 of 6
(1,716 Views)
Solution
Accepted by topic author Sarhila123

@Sarhila123 wrote:

Hello,

I want to create a LabVIEW program to control an LCD display using an Arduino Uno board. I already have the circuit of the board with the display, as shown in the image. However, I am running out of ideas on how to control it with LabVIEW. I would appreciate any help you can provide.

 


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 access to all 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 (LIFA has long since been deprecated)
    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

That being said I believe there is an example for using an LCD that comes with the LINX toolkit 

========================
=== Engineer Ambiguously ===
========================
Message 5 of 6
(1,702 Views)

But how do i connect LINX with the LCD? Anyone has any example? I'm stuck with this and i don´t know how to solve it. 

0 Kudos
Message 6 of 6
(118 Views)