A
LECTURE
ON
Arduino Interface With LabVIEW
(Used Boards: Arduino UNO & Arduino MEGA
2560)
By
Satish Kumar Rai
Assistant Professor
Department of ECE
BKBIET, Pilani
Arduino Interface with LabVIEW
Arduino is interfaced with LabVIEW via USB.
For the interface, we need following:
1. Arduino Software and Hardware
2. Labview Software
3. VI Package Manager (Install Arduino Package)
4. VISA (Virtual Instrument Software Architecture)
Note: After installing these software, write the program
(LIFA_Base.ino) available to below specified location to
Arduino.
C:\Program Files\National Instruments\LabVIEW 2013\vi.lib\LabVIEW
Interface for Arduino\Firmware\LIFA_Base\LIFA_Base.ino
Arduino Interface with LabVIEW
Two Tasks have been performed:
Task-1: LED ON & OFF with a Button on Front Panel of LV
(Used Arduino Board: Arduino UNO)
Task-2: Reading Analog DC Voltage & Showing on FP using
Meter
(Used Arduino Board: Arduino Mega 2560)
Task-1: LED ON & OFF with a Button on Front Panel of LV
(Used Arduino Board: Arduino UNO)
Task-1: LED ON & OFF with a Button on Front Panel of LV
LabVIEW
Task-1: LED ON & OFF with a Button on Front Panel of LV
Initialization
Task-1: LED ON & OFF with a Button on Front Panel of LV
Closing
Task-1: LED ON & OFF with a Button on Front Panel of LV
While Loop
Task-1: LED ON & OFF with a Button on Front Panel of LV
Pin and Pin Mode
Declaration
Task-1: LED ON & OFF with a Button on Front Panel of LV
Digital Write Prog.
Task-1: LED ON & OFF with a Button on Front Panel of LV
Front Panel
OF
F
Task-1: LED ON & OFF with a Button on Front Panel of LV
Front Panel
ON
Task-1: LED ON & OFF with a Button on Front Panel of LV
ON
Task-1: LED ON & OFF with a Button on Front Panel of LV
OF
F
Task-2: Reading Analog DC Voltage & Showing on FP using
Meter
(Used Arduino Board: Arduino Mega 2560)
The on-board voltage available to this board is 0V,
3.3V and 5V. These three voltages has been read and
displayed.
Task-2: Reading Analog DC Voltage & Showing on FP using
Meter
Analog Read Prog.
Analog Pin A0 is used to receive the input signal.
Arduin
o
Board
Task-2: Reading Analog DC Voltage & Showing on FP using
Meter
Front Panel Showing different Voltages:
Task-2: Reading Analog DC Voltage & Showing on FP using
Meter
Pic-1: Showing on board connection of GND pin to A0
Analog input and LabVIEW meter output.
Task-2: Reading Analog DC Voltage & Showing on FP using
Meter
Pic-2: Showing on board connection of 3.3V pin to A0
Analog input and LabVIEW meter output.
Task-2: Reading Analog DC Voltage & Showing on FP using
Meter
Pic-3: Showing on board connection of 5V pin to A0
Analog input and LabVIEW meter output.
References:
1. https://en.wikipedia.org/wiki/Computer_port_(hardware)
2. http://www.learning-about-computers.com/tutorials/ports.shtml
3. http://www.firewall.cx/networking-topics/cabling-utp-fibre/121-network-serial-
cable.html
4. http://maxembedded.com/2013/09/serial-communication-rs232-basics/
5.http://www.commfront.com/rs232_protocol_analyzer_monitor/RS232_Analyzer_Monito
r_Tester_TUTORIAL.HTM
ks
a n
Th