Labview and Arduino Communication
Labview and Arduino Communication
INSTITUTE
CAREER: INDUSTRIAL ELECTRONICS
HMI LABORATORY / WORKSHOP GUIDE
PRACTICE No 5.- SERIAL COMMUNICATION OF LABVIEW
SOFTWARE WITH ARDUINO
1. GENERAL DATA:
NAMES OF THE MEMBERS:
JUAN BUÑAY CHAFLA
2017/08/17 2017/08/31
2. GOALS):
2.1. GENERAL
2.2. SPECIFIC
Configuring the machine, with the arduino toolkit for the labview interface, and
loading the LIFA _BASE Sketch on arduino for successful serial communication
Design 2 programs, one that allows me to turn on an LED, and another
program that allows me to receive data from an LDR sensor, using the
labview software and the Arduino card.
Make the control diagram in the labview software and implement it with
Arduino.
Implement the circuits on the breadboard, to verify the success of the
practice.
EQUIPMENT
Computer
Arduino board
SOFTWARE
labview
IDEN Arduino
MATERIALS
led
LDR(photoresistor)
2 Resistance (330 ohm)
Breadboard
doorbell wire
4. THEORETICAL FRAMEWORK:
EXERCISE N° 1
Design a program that allows you to turn on an LED using the labview software
and the Arduino card.
Programming process
with labview
In this case, we begin by initializing the communication through the COM13
port, we proceed to configure the control that represents our digital pin as
output and subsequently assign the value of its state (on/off) using a push
button.
Below is our connection diagram as an example:
We configure the baud rate with which labview and arduino will communicate,
as well as our output port.
Once the program has been designed and all the necessary configurations
have been made in labview, we proceed to connect our Arduino to the PC and
upload the LIFA BASE sketch, and check our programming.
The control of turning on and off an LED was successfully observed and verified
through serial communication of the labview interface with Arduino through a
cable for the transmission and reception of data.
EXERCISE N° 2
Design a program that allows me to receive data from an LDR sensor, using the
labview software and the Arduino card.
We configure the baud rate with which labview and arduino will communicate.
Once the program has been designed and all the necessary configurations
have been made in labview, we proceed to connect our Arduino to the PC and
upload the LIFA BASE sketch, and check our programming.
The success of our program was observed and verified since the LDR light
sensor sends the data of the light level it receives to the labview interface.
RECOMMENDATIONS:
Research the LIFA base library and which version to use since it is
essential for the communication of the Ardu card. not with labview.
Configure the baud rate, COM port and outputs from the labview
interface before performing the simulation to avoid inconveniences.
Observe that all connections are in accordance with the diagram to avoid
inconveniences when performing the physical simulation of the circuit.
7. LINKOGRAPHY:
http://www.naylampmechatronics.com/blog/23_TUTORIAL-ARDUINO-Y-
LABVIEW.html
https://geekytheory.com/arduino-y-labview
https://geekytheory.com/barra-leds-ldr-sensor-con-arduino
8. ANNEXES: