0% found this document useful (0 votes)
40 views50 pages

AK Labview Internship Report

Uploaded by

Kuldeep
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views50 pages

AK Labview Internship Report

Uploaded by

Kuldeep
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

INDUSTRY AUTOMATION BASED ONLINE

SUMMER INTERNSHIP PROGRAM

A Summer Internship Program Reports


Submitted in Partial Fulfilment of the Requirement for the B.Tech
(Electronics and Communication)

Year
2020-2021

Conducted by
National Instruments Innovation Center
Center of Excellence ITSEC Greater Noida

Submitted By Submitted To
Mr. Chekuri Venkata Adithya Mr. Nitesh Pradhan
B. Tech (pursuing) Trainer & Coordinator
R.V.R & J.C college of Engineering NI Innovation center
(Electronics &Communication)
CERTIFICATE

This is to certify that the Summer Internship reports entitled Industry Automation
Based Online Summer Internship Program Submitted to National Instruments
Innovation Center, ITSEC Greater Noida in Partial Fulfilment of the Requirement
for the B.Tech (Electronics and communication) is an original work carried out by
Mr. Chekuri Venkata Adithya, under the guidance of Mr. Nitesh Pradhan Trainer
and coordinator of NI innovation center. The matter embodied in these reports is a
genuine work done by the Mr. Chekuri Venkata Adithya.

Signature of Student Signature of Coordinator


Mr. Nitesh Pradhan
Trainer & Coordinator
NI Innovation center
ACKNOWLEDGEMENT
My internship coordinator, Mr. Nitesh Pardhan, deserves
special recognition for providing me with invaluable guidance and
suggestions during the internship and project.

As a consequence, I am grateful to the interns for moving the


project forward and aiding me in learning about LabVIEW industrial
applications and IoT applications.

In addition, I would want to express my gratitude to my


fellow interns for making this internship a great experience, and I
believe that this internship will be beneficial to my future profession.
INDEX
1. Introduction.
2. Industry automation
2.1 Automation
2.2 Robotics Vs automation
2.3. Types of industry automation
2.4 Benefit of industry automation
2.5 Requirement of industry automation.
3. Virtual Instrumentation
3.1 What is Virtual Instrumentation
3.2 Benefit of Virtual Instrumentation
3.3 Requirement of Virtual Instrumentation
4. Virtual Programming Platform
5. LabVIEW
5.1 What is LabVIEW
5.2 LabVIEW Data Type
5.3 Array & Cluster
5.4 Loops
5.5 Case structure
5.6 SubVI
5.7 File IO
5.8 Data Acquisition
5.9 Event
5.10 State machine algorithm
5.11 Sequential Programming
6. List of programs.
6.1 Average of two & N Number
6.2 Hello word
6.3 Name Add
6.4 LED ON/OFF
6.5 Odd even
6.6 Function generator
6.7 Table
6.8 Table in range
6.9 Name to binary
6.10 Fibonacci series
6.11 Lucky Draw Number
6.12 Object Count
6.13 Pattern count
6.14 Basic child learning Program
6.15 File Read
6.16 File Write
6.17 Data acquire 1 channel
6.18 Data acquire N channel
6.19 Data acquire 1 channel store
6.20 Data acquire N channel store in text file
6.21 Data acquire N channel store in .csv file
6.22 Data base design
6.23 Folder design
6.24 Song (.Wav file) Play
6.25 Video Player
6.26 Text to voice converter
6.27 F to C converter
6.28 Fan speed control
6.29 Dice control
6.30 Car speed control
6.31 LED Move in square
6.32 Event based data acquisition
6.33 Analog watch
6.34 Tik-toc Game
6.35 Data Sent into Cloud (IOT)
6.36 Data received from cloud (IOT)
6.37 Calculator program
7. Project
7.1 Project Aim and Intro
7.2 Project description
7.3 FP/ BD
8. Outcome
9. Reference
1. Introduction

LabVIEW is a graphical programming environment that allows you to view every


element of your project, including hardware configuration, measurement data, and
debugging. This visualization simplifies the integration of measuring gear from
any vendor, the representation of complicated logic on the diagram, the
development of data analysis algorithms, and the creation of bespoke engineering
user interfaces.

LabVIEW applications are referred to as Virtual Instruments or VIs because they


replicate the appearance and function of actual instruments such as oscilloscopes
and multimeters. Front panels and block diagrams are included in VIs. The user
interface is located on the front panel. The programming underlying the user
interface is shown by the block diagram.

In contrast to text-based programming languages such as C++ and Visual Basic,


LabVIEW creates programs using icons rather than lines of text. Graphical
dataflow programming is used in LabVIEW. LabVIEW differs from most other
general-purpose programming languages in two main ways: graphical
programming and dataflow execution.

Characteristics of LabVIEW:
The following are features of LabVIEW programs:

• A graphical and organized appearance


• Programming based on dataflow and/or events
• Platform and multi-target capabilities
• Object-oriented flexibility is a plus.
• Possibilities for multi-threading
2. Industry Automation:

By using new, creative, and integrated technologies and services, Industrial


Automation helps to improve product quality, dependability, and production rate
while lowering manufacturing and design costs.

Automation is a step beyond mechanization in which a specific equipment


mechanism is combined with human operators to accomplish a task. The manual
performance of a job utilizing powered machinery that relies on human decision-
making is known as mechanization.

Industrial Automation is the replacement of human thought with computers and


machinery. The use of control systems such as computers and robots to handle
various processes and machinery in an industry to replace humans is known as
industrial automation.
2.1: Automation

The automation of a factory, manufacturing, or processing plant increases output


rate by improving production control. It aids mass manufacturing by dramatically
decreasing assembly time per product while also improving manufacturing quality.

As a result, it generates a huge amount of output for a given quantity of labour.


Integration of diverse industrial processes with automated machineries reduces
cycle times and effort, reducing the demand for human labour. As a result,
automation has reduced the amount of money spent on people.

Because automation decreases human participation, the chance of human mistake


is reduced as well. Automation can preserve uniformity and product quality with
higher conformance by adaptively managing and monitoring industrial processes at
all stages, from product conception to end product.

The necessity for human verification of different process parameters is totally


eliminated with automation. Using closed loop control techniques and automation
technology, industrial processes automatically change process variables to set or
desired values.

2.2 Robotics Vs Automation


Robotics is the process of creating robots that perform certain tasks.
Robotic process automation (RPA), according to IoT Agenda, is the use of
software with artificial intelligence (AI) and machine learning (ML) capabilities to
undertake high-volume, repetitive activities that were previously performed by
people.
RPA, which has nothing to do with robotics, is a technique that allows software
robots to use an application's user interface (UI) to replicate human behaviors
without changing systems or requiring human interaction. This method works well
for automating rule-based operations using structured digital data.
Intelligent process automation (IA) is a technology that uses RPA, BPM, analytics,
and artificial intelligence to automate a company's business operations (usually
machine learning). Unlike RPA, IA can automate complicated business processes
based on judgement (rather than rule-based activities) and that employ
unstructured and non-digital data sources.

2.3 Industrial Automation

The use of computer and machinery-assisted systems to handle different industrial


activities in a well-controlled way is known as industrial automation. Industrial
automation systems are divided into two categories based on the processes
involved: process plant automation and manufacturing automation.
2.4 Benefits of Industrial Automation

1.Productivity
2.Quality
3.A Higher Level of Consistency
4. Adaptability
5.Cost savings
6. Accurate Information
7.A better working environment.
8. Enhanced human capability

2.5 Requirements of Industrial Automation

Industrial automation is a challenging market to break into with any new


technology. In comparison to the commercial, office, or residential markets,
industry takes a long time to embrace new technologies. Even when technology is
well received by one of the more prominent sectors, there are unique
environmental issues to address. In the industrial automation industry, security and
privacy are also distinct. However, when a demonstrable difference in execution is
required from other markets, reliability is frequently the deciding element .

3. Virtual Instrumentation

• To test, control, and design applications by taking precise analogue and digital
measurements.
• To control external hardware devices from a desktop computer and to display the
unit using VI.
3.1 What is Virtual Instrumentation
A virtual instrument is made up of an industry-standard computer or workstation
with sophisticated application software, low-cost hardware like plug-in boards, and
driver software that performs the duties of traditional instruments.

Virtual instruments mark a movement away from traditional hardware-centric


instrumentation systems and toward software-centric systems that take advantage
of the processing power, productivity, display, and connection capabilities of
common desktop computers and workstations.

Instead of being constrained by traditional fixed-function instruments, engineers


and scientists may create measurement and automation systems that perfectly fit
their demands (user-defined) with virtual instruments (vendor-defined).

Engineers and scientists with rapidly changing demands, applications, and


objectives want the freedom to develop their own solutions. Because of the
application software loaded on the PC and the vast range of accessible plug-in
hardware, you may modify a virtual instrument to your specific needs without
having to replace the complete device.

Software used for Virtual instrumentation:


A virtual instrument's most essential component is its software. Engineers and
scientists may quickly develop their own apps with the proper software tool by
developing and integrating the routines that a certain process necessitates. They
can also design a user interface that is appropriate for the application's purpose and
people who will interact with it. They can specify how and when the program
obtains data from the device, as well as how the data is processed, manipulated,
and stored, and how the results are shown to the user.
You may integrate intelligence and decision-making skills into the instrument
using sophisticated software, so it adjusts as measured signals change accidentally
or when more or less processing power is necessary.

Programming in Graphics:
The graphical programming environment is one of LabVIEW's most powerful
tools for engineers and scientists. By establishing a graphical user interface on the
computer screen, you may build unique virtual instruments with LabVIEW.
3.2 Benefit of Virtual Instrumentation

•Efficiency
• Flexibility
• Cost-effectiveness
•Plug it in and work hard Nature
•How Much Does a Measurement Application Cost?
• Reducing the cost of system specification time
• Hardware and software costs are being reduced.
• Cutting down on setup and configuration time
• Lowering the cost of application software development

3.3 Requirement of VI
Because it provides instrumentation with the fast adaptability required for today's
idea, product, and process design, development, and delivery, virtual
instrumentation is essential. Engineers and scientists can only construct the user-
defined instruments needed to keep up with the world's needs via virtual
instrumentation.

The only way to fulfil these expectations is to employ software-centric test and
control structures. Virtual instrumentation is ideally positioned to keep up with the
needed new idea and product development rate because it employs highly
productive software, modular I/O, and commercial platforms.

4.Virtual Programming Platform


National Instruments Corporation (NI) released LabVIEW TM (Laboratory Virtual
Instrumentation Engineering Workbench) as a scientific software system in 1986.
G, a visual/graphical programming language based on a structured homogenous
dataflow paradigm of computing, is included. G is a language with a lot of types. It
allows for modular programming and hierarchical composition through the use of a
Virtual Instrument (VI). The LabVIEW Simulation Module offers numerical
ordinary differential equation solvers for simulation or real-time implementation,
as well as a way of describing dataflow logic in control block diagram form, which
is common in the design of control systems. LabVIEW Real Time adds
predictable, hard real-time performance to the LabVIEW graphical development
environment. LabVIEW software, the Real Time Development System, and Real
Time Engineering are the three components that make up the LabVIEW RT
architecture.

5. LabView

•Virtual Instrumentation Engineering Workbench in the Laboratory • In 1986,


LabVIEW 1.0 was released.
• LabVIEW was a Graphical Programming Language (G) for creating programs
that used icons instead of lines of text.
• Lab VIEW programs are referred to as Virtual Instruments (VIs) because they
resemble actual instruments such as oscilloscopes and digital multimeters in look
and functionality.
• Lab VIEW is a collection of VIs and functions for data acquisition, analysis,
presentation, and storage.
• It has analytical functions for differential equations, optimization, curve fitting,
calculus, linear algebra, and statistics, among other things.
• It also contains tools for presenting data on computers, such as charts, graphs,
tables, gauges, meters, tanks, 3D controls, 3D graphs, and picture control, among
other things.
• Plug-in data acquisition, or DAQ, devices can be used to acquire or produce
analogue and digital signals using Lab VIEW.

5.1 What is LabView

National Instruments' Laboratory Virtual Instrument Engineering Workbench


(LabVIEW) is a system-design platform and development environment for the
LabVIEW visual programming language.

‘G’ is the name of the graphical language, which is not to be confused with ‘G-
code’. LabVIEW, which is widely used for data collection, instrument control, and
industrial automation on a number of operating systems (OSs), including Microsoft
Windows, as well as different versions of Unix, Linux, and macOS, created the G
dataflow language.
• Lab VIEW also supports data transfer via the General-Purpose Interface Bus
(GPIB), as well as the USB, Ethernet, Firmware (also known as IEEE 1394), and
serial ports on your computer.
•GPIB is often used to connect oscilloscopes, scanners, and multimeters, as well as
to control equipment from far.

5.2 LabVIEW Data Types


Data comes in a variety of formats. LabVIEW. The Boolean, string, enumerated,
Dynamic data type, and others are examples of data types. There are numerous
data types within numeric data types, such as whole numbers and fractional
numbers.
Numeric Data Types:
Numbers of various kinds are represented by the numeric data type. To alter a
number's representation type, right-click the control, indicator, or constant and
choose Representation, as shown below.

When two or more numeric inputs with different representations are connected to a
function, the data is generally returned in the bigger, or broader, representation.
Prior to execution, the functions coerce the smaller representations to the largest
representation. On the terminal where the conversion occurs, LabVIEW places a
coercive dot.
The following representation subcategories are included in the numeric data type:
floating-point numbers, signed integers, unsigned integers, and complex numbers.
Fixed-Point Data Type
The fixed-point data type is a numeric data type that uses binary digits, or bits, to
represent a collection of rational values. You may set fixed-point numbers to
always utilize a certain number of bits, unlike the floating-point data type, which
enables the total number of bits LabVIEW uses to represent numbers to change.
The numbers can be stored and processed on hardware and devices that can only
store and process data with a restricted or fixed number of bits. Fixed-point
numbers have a range and accuracy that may be specified.

Integers

Whole numbers are represented by integers. Integers with a sign can be positive or
negative. When you know the integer will always be positive, use the unsigned
integer data types. The color blue is used to represent integers in LabVIEW.

Complex Numbers

Concatenated versions of floating-point numbers containing a real and imaginary


portion are known as complex numbers. Because complex numbers are a form of
floating-point number, they are also represented by the color orange in LabVIEW.

5.3 Array & Cluster


• Select the arrays sub palette on the block diagram.
• Drag an array constant onto a block diagram.
• An array shell is created as a result of this.
• The data type that the array carries must be determined before the array can be
completed.
• In the elements section, drag a constant from a sub palette.
• This specifies the array's data type.
Clusters
• A data structure that organizes data. There are several sorts of data that may be
used. In C, it is struct, while in Pascal, it's a record. Either all controls or all
indicators must be present. Considered to be a cable made from of wires.

• Clusters are created by grouping together a set of inputs and compiling them into
a cluster that can then be modified to your desire. They're ideal for keeping data
organized and consistent in a style that's easy to represent in LabVIEW.
• Creates a cluster array by indexing a collection of arrays and matching the value
of each element to a corresponding position.
• The elements are arranged in a logical sequence (start with 0). Right-click the
border and select Reorder Controls in Cluster to rearrange the controls.

5.4 LOOPS
The While Loop may be found on the Structures palette. Use the mouse to draw a
selection rectangle over the portion of the block diagram you wish to repeat, then
pick the While Loop from the palette. A While Loop border encloses the area you
picked when you release the mouse button.
The While Loop runs the sub circuit until a specified Boolean value is received by
the conditional terminal, which is an input terminal. The While Loop, on the other
hand, has no predefined iteration count and runs indefinitely if the condition is
never met.
If you position the terminal of a Boolean control outside a While Loop and the
control is FALSE when the loop starts, you will get an endless loop. If the
conditional terminal is Continue if True and the control outside the loop is changed
to TRUE, you will get an infinite loop.

For loop: The For Loop may be found on the Structures palette. You may also
transform a While Loop to a For Loop by placing it on the block diagram, right
clicking the border of the While Loop, and selecting Replace with For Loop from
the shortcut menu. The count terminal is an input terminal whose value specifies
how many times the sub diagram should be repeated.
5.5 Case Structure
There are two or more sub diagrams, or cases, in a Case structure. At any one
moment, only one sub diagram is shown, and the structure only runs one case at a
time. Which sub diagram is executed is determined by an input value. In text-based
programming languages, the Case structure is comparable to switch statements or
if...then...else statements. The name of the selector value that corresponds to the
case in the center, as well as decrement and increment arrows on either side, are
displayed on the case selector label at the top of the Case structure. To browse
through the cases, use the decrement and increment arrows. You may also choose a
case from the pull-down menu by clicking the down arrow next to the case name.
To decide which case runs, connect an input value, or selector, to the selector
terminal. The selection terminal must be wired with an integer, Boolean value,
string, or enumerated type value. The selection terminal can be placed anywhere
on the left boundary of the Case Structure.

If the selector terminal's data type is Boolean, the structure contains two cases:
True and False. The structure can have any number of cases if the selector terminal
is an integer, string, or enumerated type value. You must manually describe every
potential input value if you do not define a default case for the Case structure to
handle out-of-range values. If the selection is an integer and you define cases for 1,
2, and 3, you must also indicate a default case that will be used if the input value is
4 or any other integer value that is not provided.
Right-click a Case structure and pick Replace with Stacked Sequence from the
shortcut menu to convert it to a Stacked Sequence structure. To add, duplicate,
remove, or rearrange cases, right-click the Case structure border, and then choose a
default case.
5.6 Sub VI
A stand-alone VI that may be called by other VIs is known as a Sub VI. The Sub-
VI is comparable to a single function. Sub VI is a useful programming ability since
it allows you to reuse code in multiple scenarios while keeping your primary VI
program clean and concise.
Click the Select a VI button on the Functions panel to add a sub VI to the block
diagram. Double-click the VI you wish to use as a sub VI on the block diagram to
set it there. You may also put an open VI on top of another open VI's block
diagram. Click the icon in the top right corner of the front panel or block diagram
of the VI you wish to utilize as a sub VI with the Positioning tool, and drag the icon
to the block diagram of the other VI.

5.7 File I/O


• Data is sent to and from files via file I/O operations. To handle all elements of
file I/O, use the File I/O VIs and functions.
•The four stages involved in a typical file I/O operation.
1. You make or open a document. When a file opens, it is given a refnum, which is
a unique identifier.
2. The File I/O VI or function reads and writes to files.
3. You save the document.
4. You go through the mistakes.

• Some File I/O VIs are capable of performing all three phases of the file I/O
process: open, read/write, and close. A VI is considered to as a high-level VI if it
completes all three phases. These VIs, on the other hand, may not be as efficient as
low-level VIs and functions built for specific process steps. Use low-level file I/O
VIs if you are writing to a file in a loop. You may utilize the high-level file I/O VIs
instead if you are writing to a file in a single operation.

5.8 Data Acquisition


A data acquisition (DAQ) system sends a conditioned electrical signal to a
computer for software processing and data reporting through a data acquisition
device. You can utilize a PCI bus, a PCI Express bus, a PXI bus, or the computer's
USB or IEEE 1394 connector to connect to a data collection device. This section
describes the hardware that makes up a data acquisition system and how to set it
up. A terminal block, a cable, and a DAQ device are the three main forms of
hardware in a conventional DAQ system.
5.9 EVENT
A basic structure with several sub diagrams (also known as "Event cases"), one of
which is selectively performed at runtime. The structure waits for an event to
happen or for the timeout to expire. It does not need any CPU time while it waits.
User interaction or software programming can both cause events. When one event
occurs while another is running, the new event is added to the event queue.
LabVIEW manages the event queue for each event structure. The event structure
processes the event queue in a sequential manner. The Flush Event Queue function
may be used to delete entries from the event queue. The event queue cannot be
changed, destroyed, or accessed in any other way.

5.10 State Machine Algorithm

What is a State Machine?


A state machine is a programming architecture that allows for dynamic movement
between states based on past state values or user inputs.
This architecture is well suited to applications that have a mix of the following:
 States
 Decision-making logic for determining when to go to a specific state.

Initializing, waiting, executing a computation, verifying status, and other states can
be described as the status within the program while it is doing the overall task of
the program.
The use of logical statements can assist in determining when and where to relocate.
Each state in a State Machine does something unique and calls other states. State
communication depends on some condition or sequence. To translate the state
diagram into a LabVIEW programming architecture, you need the following
infrastructure:
While Loop – continually executes the various states.
Case Structure – each case contains code to be executed for each state.
Shift Register – contains state transition information.
Transition code – determines the next state in the sequence.

In applications with distinct states, State Machines are employed. Each state has
the ability to lead to one or more other states, as well as to terminate the process
flow. To select which state to proceed to next, a State Machine uses user input or
in-state calculations. Many programs require a “initialize” state, followed by a
default state that allows for a variety of operations. Previous and present inputs, as
well as states, might influence the actions taken. Clean-up operations can then be
performed in a "shutdown" state.

5.11 Sequential Programming


In a sequence structure, an action event is given a preset order that leads to the next
event. A sequence structure can include any number of activities, but no activity
may be skipped.
A sequence structure, or frame of a sequence, contains one or more tiny sections of
a block diagram that must be executed consecutively. As shown in the rest of the
block diagram, data dependence defines the order in which a sequence is executed
within each frame of a sequence structure.
Sequence structure in LabView is divided into two categories:
 Flat Sequence structure
 Stacked Sequence structure stacked.
To regulate the order of data execution, it is better to respond on data flow rather
than sequence structure. In subsequent tutorials, I'll go into data flow in greater
depth. Sequence structures should be used sparingly since they obscure the code.
With sequence structures, you violate the left-to-right data flow paradigm
whenever you utilize a sequence local variable.
At the output tunnels of a sequence structure, unlike case structures, there is just
one data source accessible. Any of the frames of a sequence structure's output can
be extracted. Whether you are utilizing a flat sequence or a stacked structure, data
at the input tunnels of a sequence structure is available to all the frames of the
sequence structure, just as it is in case structures. It will be further discussed in the
explanation section.
Flat sequence:
Stacked Sequence:
Frame1:

Frame2:
6.1: Average of two & N
Front Panel Block Diagram

6.2: Hello world

6.3: Name add

6.4: LED ON/OFF


6.5: Odd-Even

6.6: Function Generator

6.7: Table
6.8: Table In range

6.9: Name to binary

6.10: Fibonacci series


6.11: Lucky draw

6.12: Object count

6.13: Pattern count


6.14: Basic child learning program

6.15 & 6.16: File read_File write

6.17: Data Acquire one channel

Front panel Block Diagram


6:18: Data Acquire N channel

Block Diagram

Front Panel

6.19: Data Acquire 1 channel


Block Diagram
Front Panel

6.20: Data Acquire N channel


store in txt file
Block Diagram
Front Panel

6.21: Data Acquire N channel store

Block Diagram
Front Panel

Block Diagram

6.22 Data base design


Front Panel

6.23: Folder design

6.24: Song play (.Wav file)


Block Diagram
Front Panel

6.25: Video Player

Block Diagram

Front panel
6.26: Text to Voice convertor

6.27: Celsius to Fahrenheit


Front panel Block Diagram

6.28: Fan speed Control

Front panel Block Diagram


6.29: Dice Control
Front panel Block diagram

6.30: Car speed control


Block Diagram

Front panel
6.31: LED Move in Square
Block Diagram

Front Panel
6.32: Event based Data

Block Diagram

Front Panel
6.33: Analog watch

Front panel Block Diagram

6.34: Tic-Tac-Toe
Block Diagram

Front Panel
6.35: Data sent into

Block Diagram Front panel

Data Uploaded to cloud

6.36: Data received from Cloud

Block Diagram
Front Panel

6.37: Calculator
Block Diagram

Front Panel
7. DC motor Speed & Direction control
7.1 Introduction:
Aim: To control the DC motor using Arduino and LabView software.
Apparatus: Arduino Uno, DC motor, LabView software.
Theory:
First and foremost, I would want you to use a flow chart to illustrate the DC Motor
Speed Control method in LabVIEW. This project's flow chart is depicted in the
diagram below. The block diagram in LabVIEW shows the assembly of all the
components used in DC Motor Speed Control. Serial connection is used to send
commands from NI LabVIEW to the Arduino at first.

The Arduino then sends these commands to the L98 motor controller, which drives
the DC motor in this fashion. The orders that were performed are shown on the
LCD. To begin, launch the NI LabVIEW program on your laptop or computer.
Right-click on the Block Diagram window to open it.

7.2 Project Description


Procedure:
First open the LabView software and select a new VI, then, we can view different
serial blocks like VISA Write, VISA Read, VISA Serial, and so on by going to
Functions-> Instrument I/O-> Serial. Select the encircled VISA Configure Serial
Port from the Block Diagram window and drag it to the Block Diagram window.
Before running the algorithm, we will use the VISA Configure Serial Port block to
open the Serial Port.
The Block Diagram is presented in the image below as a screen picture. Go to
Create-> Control on the first input terminal of the VISA Configure Serial Port
block. The preceding step will assist you in selecting the Arduino board's COM
port in order to run the software successfully. The updated Block Diagram window
is seen in the illustration below. Now go to Functions-> Instrument I/O-> Serial
and look at the various serial blocks there. Select and drag the ringed VISA Close
block to the Block Diagram window.
The VISA Close block is seen in the diagram below, and it will aid with the
closure of the Serial Port if necessary. Now go to Functions-> Programming->
Structures to examine the many structures available, such as For Loop, While
Loop, Case Structure, and so on. Select the ringed block as indicated in the
diagram. Go to the Flat Sequence section of the Functions-> Programming->
Structure’s menu. The image below depicts a flat sequence block that is
surrounded. Place your mouse over Add Frame After and choose it. After that, as
indicated in the images below, add another instance.
Now go to Functions-> Programming-> Structures to examine the many structures
available, such as For Loop, While Loop, Case Structure, and so on. Select the
ringed block as indicated in the diagram. Place your mouse over Add Frame After
and choose it. After that, as indicated in the images below, add another instance.
Now Go to Functions-> Instrument I/O-> Serial to view the various serial blocks.
Choose the VISA Write Block that is ringed and drag it to the Block diagram

window.
Place the Local Variable Block on the Front Panel after selecting it. As seen in the
image below, right-click on it and choose Command box. Go to Create-> Constant
on the input terminal of this local variable. Insert C into that constant. The diagram
below elucidates the preceding step. The above case layout is for the DC motor to
rotate clockwise. Make four more case structures for counterclockwise rotation,
accelerating, de-accelerating, and halting the stepper motor's spin. In the diagram
below, all three case structures are depicted.

For Speed control:


For Direction Control:

The LED in the diagram above will control the stepper motor in clockwise and
counterclockwise directions, as well as stop it. Now, in the block diagram window,
link these blocks as indicated in the image below. Finally, once all of the orders
have been sent, the serial port must be closed to prevent unnecessary command
exchange. So, I deleted all the commands in the third frame of the case structure,
which means I am not transmitting any commands via the serial port. This will aid
with the closure of the serial port. All of the aforementioned stages are visually
explained in the block diagram and front panel below.
Now add a Stop button to the application so you may stop it whenever you want.
The program's whole output is depicted in the diagram below. The image below
depicts a full NI LabVIEW Virtual Instrument (VI). To design my program, I
utilized three decorative blocks ringed with blue color. The red boundary indicates
all of the decorative blocks that may be used to make your software more
appealing. You may also use these incredible features to enhance the look of your
applications.
7.3 Block Diagram and Front panel
DC motor Speed control:
Block Diagram

Front Panel:
DC motor direction Control:
Block Diagram:

Front Panel:
Result:
Hence using Arduino and LabView, DC motor controls are tested and can be
further used for industrial purpose.
8. Outcomes:
This industrial internship taught me the value of LabView in both software and
industrial applications. Plus, the tasks are simple to complete with LabView, and I
have prior experience of signal processing. Industrial IoT concepts are the most
intriguing and important in today's world.
9.References:
[1] S. Z. Nasir, "theengineerig projects.," 7 may 2016. [Online]. Available:
https://www.theengineeringprojects.com/2016/05/labview-projects.html.
[Accessed 06 2021].

[2] N. pradhan, LabView & Multisim, NI Instruments.


https://youtube.com/channel/UCvJ5ijAD87OihO6hQEhrWJw, 2021.

You might also like