1. EXPERIMENT – 6
OBJECTIVE: To count number of external events using LabVIEW.
APPARATUS USED: Arduino board, seven segment, LABVIEW setup.
THEORY:
Introduction to LABVIEW: LabVIEW is an integrated development environment designed
specifically for engineers and scientists. Native to LabVIEW is a graphical programming
language (G) that uses a dataflow model instead of sequential lines of text code, empowering
you to write functional code using a visual layout that resembles your thought process. This
means you spend less time worrying about semicolons and syntax and more time solving the
problems that matter.
Seven Segment: A seven-segment display (SSD), or seven-segment indicator, is a form of
electronic display device for displaying decimal numerals that is an alternative to the more
complex dot matrix displays. Seven-segment displays are widely used in digital clocks,
electronic meters, basic calculators, and other electronic devices that display numerical
information.
Pattern of display numbers:
In the following table there is a sequence available which helps in coding the sequence.
2. Interfacing 7- Segment with Arduino:
In this circuit, the pins of seven-segment display are connected to Arduino pins 2-9, as shown
in the table below. Common pins (pin 3 and pin 8) are connected to GND and dp is left
unconnected, because it is not used in this experiment
Interface Arduino through LabVIEW:
U
N
O
3. Hardware interfacing:
Checks if LabVIEW sent a new value. If there is a new value, it converts it into integer byte
with the same value. This integer byte represents the delay interval used in sequence. That,
the greater the delay the lower the speed and vice versa. Else, Arduino continue running the
motor at current speed. This prevents the processor from overloading the serial port and
pushes it to avoid Arduino Serial port hanging.
RESULT: Study the operation of seven segment with LabVIEW and counting a sequence.