Introduction
In this post, you are going to learn how to work with an Arduino board for industrial automation and the computer application LabVIEW.
Previous readings
We recommend you to read the following post from our blog before reading this one.
We recommend you to read the following post from our blog before reading this one.
Requirements
In order to work with the PC application LabVIEW, you will need the following things:
An Arduino board: Â Arduino Mega, Arduino Starter Kit, Arduino Nano, Arduino ProMicro and Arduino Uno
Some electronic components such as cables, leds, resistors, potentiometers, etc.
Arduino IDE Software
NI VISAÂ (Labview Arduino visa)
Hardware & Software
The connection between an Arduino board and LabVIEW:
First of all, you are going to look for the sketch called LIFA_Base following the steps in the first screenshot: Este equipo -- Disco local(C:) (or the letter that your local disc has) -- Archivos de programa (x86) -- National Instruments -- LabVIEW 2019 (or the version that you downloaded) -- vi.lib -- LabVIEW Interface for Arduino -- Firmware -- LIFA_Base. Once you found it click on it and an Arduino IDE window is going to pop up on your computer.
After this, go to this window and click Tools (Herramientas) -- Board (Placa) + Processor (Procesador) + Port (Puerto) and select your Arduino board and processor type and the serial port where it is located.
Build the following electrical circuit:
The Leds can have any color. (The long leg of the leds is the positive part, which has to be connected to its resistor and the other one has to be connected to the ground pin, GND).
The connections can be done in any of the PWM or DIGITAL pins, except the PWM 0, 1 (RX and TX communication pins), or the 13 (associated with the led of the Arduino board).
The resistors should be 220 Ohm.
LabVIEW Arduino Projects for Industrial Applications