M.G. COLLEGE OF ENGINEERING VANDITHADAM, THIRUVALLAM, THIRUVANANTHAPURAM-695027 DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING NOVEMBER 2013 PROJECT REPORT ON AUTOMATIC VOLTAGE CONTROL OF TRANSFORMER USING MICROCONTROLLER AND SCADA Submitted in partial fulfillment of the requirements of the award of B.Tech on Electrical and Electronics Engineering of the Cochin University of Science and Technology(CUSAT) Submitted by: AJESH JACOB(19113203)
60
Embed
AUTOMATIC VOLTAGE CONTROL OF TRANSFORMER USING MICROCONTROLLER AND SCADA
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
M.G. COLLEGE OF ENGINEERING VANDITHADAM, THIRUVALLAM, THIRUVANANTHAPURAM-695027
DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING
NOVEMBER 2013
PROJECT REPORT
ON
AUTOMATIC VOLTAGE CONTROL OF
TRANSFORMER USING MICROCONTROLLER
AND SCADA
Submitted in partial fulfillment of the requirements of the award of B.Tech on
Electrical and Electronics Engineering
of the Cochin University of Science and Technology(CUSAT)
Submitted by:
AJESH JACOB(19113203)
TABLE OF CONTENTS
SL NO: CHAPTERS PAGE NO:
1 INTRODUCTION 1
2 WAY OF STUDY 3
3 PARAMETERS CONSIDERING
4
3.1 ANALOG PARAMETERS:
5
3.2 LOGIC PARAMETER: 5
4 FUNCTIONAL BLOCK DIAGRAM 5
4.1 MAIN HARDWARES 5
4.1.1 MICROCONTROLLER 5
4.1.2 RS232 5
4.1.3 TEMPERATURE SENSOR 5
4.1.4 DUAL FULL BRIDGE DRIVER 6
5 SOFTWARES 6
5.1 LAB VIEW 6
6 CIRCUIT DIAGRAM 7
7 SCADA 8
8 ESTIMATION OF PROJECT 8
9 CONCLUSION 9
REFERENCE 9
LIST OF FIGURES
FIG NO CONTENT PAGE NO
1. FUNCTIONAL BLOCK DIAGRAM 5
2. CIRCUIT DIAGRAM 7
1
AUTOMATIC VOLTAGE CONTROL OF
TRANSFORMER USING MICROCONTROLLER
AND SCADA
Ajesh Jacob(19113203)
S7,Department of Electrical and Electronics Engineering
MG COLLEGE OF ENGINEERING
ABSTRACT: A tap changer control operates to connect appropriate tap position of winding
in power transformers to maintain correct voltage level in the power transmission and
distribution system. Automatic tap changing can be implemented by using µC. This improved
tap-changing decision and operational flexibility of this new technique make it attractive for
deployment in practical power system network. This paper deals with the implementation of
µC based tap changer control practically, using special purpose digital hardware as a built-in
semiconductor chip or software simulation in conventional computers. Two strategies are
suggested for its implementation as a software module in the paper. One is to integrate it with
the supervisory system in a substation control room operating in a LAN environment. In this
configuration, the parallel transformers can be controlled locally. The other is to integrate it
into the SCADA (Supervisory Control and Data Acquisition) system, which allows the
transformers to be monitored and controlled remotely over a wide area of power-network. The
implementation of µC based tap changer control needs interfacing between the power system
and the control circuitry. µC s may need to interact with people for the purpose of
configuration, alarm reporting or everyday control.
A human-machine interface (HMI) is employed for this purpose. An HMI is usually linked to
the SCADA system’s databases and software programs, to provide trending, diagnostic data,
and management information such as scheduled maintenance procedures, logistic
information, detailed schematics for a particular sensor or machine, and expert-system
troubleshooting guides.
CHAPTER 1
INTRODUCTION There are vast opportunities to improve energy use efficiency by eliminating waste through
process optimization. Applying today’s computing and control equipment and techniques is one
of the most cost-effective and significant opportunities for larger energy users to reduce their
energy costs and improve profits. An Energy Management Information System (EMIS) is an
important element of a comprehensive energy management program. It provides relevant
information to key individuals and departments that enable them to improve energy performance.
Today it is normal for companies, particularly in process sectors, to collect huge amounts of real-
2
time data from automated control systems, including microcontrollers, Supervisory Control and
Data Acquisition (SCADA), etc. The captured data is shared and analysed in an orderly and
precise way that identifies problem areas and provides solutions, this mass of data is merely
information overload. Advances in information technology (IT), defined here as the use of
computers to collect, analyses, control and distribute data, have developed rapidly. It is now
common for managers and operators to have access to powerful computers and software. Today
there are a number of techniques to analyses the factors that affect efficiency, and models are
automatically generated based on “what if” scenarios in order to improve decisions to be taken.
The paper shows a very advanced technology for handling automatically more than 200 digital
and analogue (i/p and o/p) parameters via intelligent monitoring and controlling system.
However, load management is the process of scheduling the loads to reduce the electric energy
consumption and or the maximum demand. It is basically optimizing the processes/loads to
improve the system load factor. Load-management procedures involve changes to equipment
and/or consumption patterns on the customer side. There are many methods of load management
which can be followed by an industry or a utility, such as load shedding and restoring, load
shifting, installing energy-efficient processes and equipment, energy storage devices, co-
generation, non-conventional sources of energy, and reactive power control Meeting the peak
demand is one of the major problems now facing the electric utilities. With the existing
generating capacity being unmanageable, authorities are forced to implement load shedding in
various sectors during most of the seasons. Load shifting will be a better option for most
industries. Load shifting basically means scheduling the load in such a way that loads are
diverted from peak period to off-peak periods, thereby shaving the peak and filling the valley of
the load curve, so improving the load factor .To encourage load shifting in industries, and
thereby to reduce peak demand automatically, Also, power quality is of major concern to all
types of industries, especially those operating with critical machinery and equipments. Poor
quality of power leads to major problems like break-downs, production interruptions, excess
energy consumption etc. Modern industries require automation of their operation enabling them
to produce quality products and also for mass production. The conventional systems are being
replaced by modern Power Electronic systems, bringing a variety of advantages to the users.
Classic examples are DC & AC Drives, UPS, soft starters, etc. Power Quality Alarming and
Analysis provides a comprehensive view into a facility's electrical distribution system. Power
Quality can be monitored at the electrical mains or at any critical feeder branch in the
distribution system such as described here. Devices in this category typically provide all of the
parameters found in basic devices, plus advanced analysis capabilities [7]-[8]. These advanced
analysis capabilities include using waveform capture to collect and view waveform shape and
magnitude, providing harmonic analysis graphs, collection and storage of events and data, and
recording single or multiple cycle waveforms based on triggers such as overvoltage or transients.
With the ever-increasing use of sophisticated controls and equipment in industrial, commercial,
and governmental facilities, the continuity, reliability, and quality of electrical service has
become extremely crucial to many power users. Electrical systems are subject to a wide variety
3
of power quality problems which can interrupt production processes, affect sensitive equipment,
and cause downtime, scrap, and capacity losses. Momentary voltage fluctuations can disastrously
impact production . the proposed modified intelligent monitoring and controlling system will
introduce monitoring, alarming, controlling, and power quality mitigation based on data
collected and analyzed from the system.
OBJECTIVES: The original system can afford the following features:
- Complete information about the plant (circuit breakers status, source of feeding, and level of
the consumed power).
- Information about the operating values of the voltage, operating values of the transformers,
operating values of the medium voltage, load feeders, operating values of the generators. These
values will assist in getting any action to return the plant to its normal operation by minimum
costs.
- Information about the quality of the system (harmonics, current, voltages, power factors,
flickers, etc.). These values will be very essential in case of future correction.
- Recorded information such case voltage spikes, reducing the voltage on the medium or current
interruption.
- implementation of µC based tap changer control practically, using special purpose digital
hardware as a built-in semiconductor chip or software simulation in conventional computers.
CHAPTER 2
WAY OF STUDY
Searching for a new trend topic
Select the topic
Sketching the block diagram
List out the components needed
Googling the properties of each components
Select the apt components
Rough sketching the circuit diagram
Calculating the cost of project
4
Plan to study the software part
Correcting the circuit by designing the values of components
Implementing the circuit
Presenting the project
CHAPTER 3
PARAMETERS CONSIDERING;
3.1 ANALOG PARAMETERS:
1. Incoming Voltage
2. Bus Voltage
3. 3 - Feeder Current
4. Max Bus Current
5. Incoming Current
6. Power
7. Active Power
8. Power Factor
9. Frequency
3.2. LOGIC PARAMETER:
1. over Heat Protection
2. Flame Identification
3. Trespassing Identification
5
CHAPTER 4
FUNCTIONAL BLOCK DIAGRAM
4.1 MAIN HARDWARES 4.1.1.MICROCONTROLLER: The PIC16F87XA is a low power CMOS 8-bit microcontroller
based on the AVR enhanced RISC architecture by executing powerful instructions clock cycle,
achieves through PIC16F87XA puts approaching 1MIPS/MHz allowing the system designer to
optimize power consumption versus processing speed.
4.1.2. RS-232: In telecommunications, RS-232 is a standard for serial data communication.
.interconnection between a DTE (Data terminal equipment) and a DCE(Data Circuit-terminating
Equipment).it is commonly used in computer serial ports. is commonly used in computer serial
ports.
4.1.3. TEMPERATURE SENSOR: The Temperature sensor detector is designed for the
security practice. This sensor buffers a piezoelectric transducer. As the transducer is displaced
from the mechanical neutral axis, bending creates strain within the piezoelectric element and
generates voltages. When vibration Temperature sensor alarm recognizes temperature it sends a
signal to either control panel developed a new type of Omni-directional high sensitivity security
vibrational temperature detector with Omni-directional detection.
6
4.1.4. DUAL FULL BRIDGE DRIVER: The L298 is an integrated monolithic circuit in a 15-
lead Multi-watt and PowerSO20 packages. It is a high voltage, high current dual full-bridge
driver designed to accept standard TTL logic levels and drive inductive loads such as relays,
solenoids, DC and stepping motors. Two enable inputs are provided to enable or disable the
device independently of the input signals. The emitters of the lower transistors of each bridge are
connected together and the corresponding external terminal can be used for the connection of an
external sensing resistor. An additional supply input is provided so that the logic works at a
lower voltage.
CHAPTER 5
SOFTWARE
5.1. Lab VIEW: (short for Laboratory Virtual Instrument Engineering Workbench) is a
system-design platform and development environment for a visual programming language from
National Instruments. The graphical language is named "G" (not to be confused with G-code).
Originally released for the Apple Macintosh in 1986, LabVIEW is commonly used for data
acquisition, instrument control, and industrial automation on a variety of platforms including
Microsoft Windows, various versions of UNIX, Linux, and Mac OS X. The programming
language used in LabVIEW, also referred to as G, is a dataflow programming language.
Execution is determined by the structure of a graphical block diagram (the LV-source code) on
which the programmer connects different function-nodes by drawing wires. These wires
propagate variables and any node can execute as soon as all its input data become available.
Since this might be the case for multiple nodes simultaneously, G is inherently capable of
parallel execution. Multi-processing and multi-threading hardware is automatically exploited by
the built-in scheduler, which multiplexes multiple OS threads over the nodes ready for
executions.
In terms of performance, LabVIEW includes a compiler that produces native code for the CPU
platform. The graphical code is translated into executable machine code by interpreting the
syntax and by compilation. The LabVIEW syntax is strictly enforced during the editing process
and compiled into the executable machine code when requested to run or upon saving. In the
latter case, the executable and the source code are merged into a single file. The executable runs
with the help of the LabVIEW run-time engine, which contains some precompiled code to
perform common tasks that are defined by the G language. The run-time engine reduces compile
time and also provides a consistent interface to various operating systems, graphic systems,
hardware components, etc. The run-time environment makes the code portable across platforms.
Generally, LabVIEW code can be slower than equivalent compiled C code, although the
differences often lie more with program optimization than inherent execution speed. Libraries
with a large number of functions for data acquisition, signal generation, mathematics, statistics,
signal conditioning, analysis, etc., along with numerous graphical interface elements are
7
provided in several LabVIEW package options. The number of advanced mathematic blocks for
functions such as integration, filters, and other specialized capabilities usually associated with
data capture from hardware sensors is immense. In addition, LabVIEW includes a text-based
programming component called MathScript with additional functionality for signal processing,
analysis and mathematics. MathScript can be integrated with graphical programming using
"script nodes" and uses a syntax that is generally compatible with MATLAB.
CHAPTER 6
CIRCUIT DIAGRAM
8
CHAPTER 7
SCADA FOR POWER SYSTEM AUTOMATION
Automation of power distribution system has increasingly been adopted by power utilities
worldwide in recent years. As part of its efforts to provide a more reliable supply to the customer
and to enhance operational efficiency. The automation of the power system can be achieved by
SCADA. It is a boon to the automation concept of dynamic technology. SCADA refers to
“SUPERVISORY CONTROL&DATA ACQUISITION”. This paper presents the approach
adopted in implementing the SCADA system and the benefits accrued through incorporating
system. Electric power distribution system is an important part of electric power system in
delivery of electricity to consumers. Electric power utilities worldwide are increasingly adopting
the computer aided monitoring, control and management of electric power distribution system to
provide better service to electric consumers. Therefore research and development activities
worldwide are being carried out to automate the electric power distribution system utilizing
recent advancement in the area of information technology and data communication system. This
paper reports the present and past status of the research and development activities in the area of
electric power distribution automation both in developed as well as in developing countries. The
information given in this paper is useful to electric power distribution utilities and academicians
involved in research and development activities in the area of power distribution automation.
Even public sectors like TNEB has installed SCADA for monitor & control ninety-five
substations in the CHENNAI metro for this, We are trying to reproduce SCADA in a computer
based SCADA system equipped with automated generation control function is proposed. To
supervise and control the generation and transmission system as well as to cater for their
increasing sophistication in system operation and coordination. In order to serve such a high
number of RTU by a control centre and to avoid any communication bottleneck at the master
station, a distributed system approach is suggested.
CHAPTER 8
ESTIMATION OF PROJECT
SL NO PURPOSES PRICE RATE
1 programming 5000/-
2 Layout designing 3000/-
3 components 5000/-
4 Circuit designing 3000/-
5 others 5000/-
6 Total 21,000/-
9
CHAPTER 9
CONCLUSION This paper deals with the implementation of µC based tap changer control practically, using
special purpose digital hardware as a built-in semiconductor chip or software simulation in
conventional computers. Two strategies are suggested for its implementation as a software
module in the paper. One is to integrate it with the supervisory system in a substation control
room operating in a LAN environment. In this configuration, the parallel transformers can be
controlled locally. The other is to integrate it into the SCADA (Supervisory Control and Data
Acquisition) system, which allows the transformers to be monitored and controlled remotely
over a wide area of power-network. The implementation of µC based tap changer control
needs interfacing between the power system and the control circuitry. µC s may need to
interact with people for the purpose of configuration, alarm reporting or everyday control.
REFERENCE
[1] M. R. Mcrae, R. M. Seheer and B. A. Smith, "Integrating Load Management Programs into Utility
Operations and Planning with a Load Reduction Forecasting System," IEEE Trans., Vol PAS-104, No. 6, pp.
1321- 1325, June 1985.
[2] C. W. Gellings, "Interruptible Load Management into Utility Planning", IEEE Trans. Vol.PAS-104, No.8,
pp.2079-2085, August 1985[3] C. W. Gellings, A. C. Johnson and P. Yatcko, "Load Management Assessment
Methodology at PSE&G", IEEE Trans.,Vol. PAS-101, No.9, pp. 3349-3355, September,1982.
[4] C. Alvarez, R.P. Malhame, A. Gabaldon, “A class of models for load management application and
evaluation revisited”, IEEE Transaction on Power Systems, Vol. 7, No. 4, pp. 1435, Novemebr-1992.
[5] L Ma Isaksen and N.W. Simons, “Bibliography and load management”, IEEE Transactions on Power
Apparatus and Systems 1981: PAS-100(5):1981.
[6] J.N. Sheen et al, “TOU pricing of electricity for load management in Taiwan power company”, IEEE Trans
on Power Systems 1994.
[7] Meier, Alexandra von (2006). Electric Power Systems: A Conceptual Introduction. John Wiley & Sons, Inc.
ISBN 978-0-471-17859.
[8] Kusko, Alex; Marc Thompson (2007). Power Quality in Electrical Systems. McGraw Hill. ISBN 978-
0071470759.
[9] M.M. Eissa. Demand Side Management Program Evaluation Based on Industrial and Commercial Field
Data. Energy Policy 39 (October, 2011) 5961–5969.
SUBSTATION AUTOMATION USING µC AND SCADA 2014
DEPT. OF EEE, MG COLLEGE OF ENGINEERING 1
CHAPTER 1
INTRODUCTION
There are vast opportunities to improve energy use efficiency by eliminating waste through
process optimization. Applying today’s computing and control equipment and techniques is
one of the most cost-effective and significant opportunities for larger energy users to reduce
their energy costs and improve profits. An Energy Management Information System (EMIS)
is an important element of a comprehensive energy management program. It provides relevant
information to key individuals and departments that enable them to improve energy
performance. Today it is normal for companies, particularly in process sectors, to collect huge
amounts of real-time data from automated control systems, including Programmable Logic
Controllers (PLCs), Supervisory Control and Data Acquisition (SCADA), etc. The captured
data is shared and analysed in an orderly and precise way that identifies problem areas and
provides solutions, this mass of data is merely information overload. Advances in information
technology (IT), defined here as the use of computers to collect, analyse, control and distribute
data, have developed rapidly. It is now common for managers and operators to have access to
powerful computers and software. Today there are a number of techniques to analyse the
factors that affect efficiency, and models are automatically generated based on “what if”
scenarios in order to improve decisions to be taken. The paper shows a very advanced
technology for handling automatically, digital and analogue (i/p and o/p) parameters via
intelligent monitoring and controlling system.
A tap changer control operates to connect appropriate tap position of winding in power
transformers to maintain correct voltage level in the power transmission and distribution
system. Automatic tap changing can be implemented by using µC. This improved tap-changing
decision and operational flexibility of this new technique make it attractive for deployment in
practical power system network. This paper deals with the implementation of µC based tap
changer control practically, using special purpose digital hardware as a built-in semiconductor
chip or software simulation in conventional computers. Two strategies are suggested for its
implementation as a software module in the paper. One is to integrate it with the supervisory
system in a substation control room operating in a LAN environment. In this configuration, the
parallel transformers can be controlled locally. The other is to integrate it into the SCADA
(Supervisory Control and Data Acquisition) system, which allows the transformers to be
monitored and controlled remotely over a wide area of power-network. The implementation of
µC based tap changer control needs interfacing between the power system and the control
circuitry. µC s may need to interact with people for the purpose of configuration, alarm
reporting or everyday control.
A human-machine interface (HMI) is employed for this purpose. An HMI is usually linked to
the SCADA system’s databases and software programs, to provide trending, diagnostic data,
and management information such as scheduled maintenance procedures, logistic information,
detailed schematics for a particular sensor or machine, and expert-system troubleshooting
guides.
SUBSTATION AUTOMATION USING µC AND SCADA 2014
DEPT. OF EEE, MG COLLEGE OF ENGINEERING 2
However, load management is the process of scheduling the loads to reduce the electric energy
consumption and or the maximum demand. It is basically optimizing the processes/loads to
improve the system load factor. Load-management procedures involve changes to equipment
and/or consumption patterns on the customer side. There are many methods of load
management which can be followed by an industry or a utility, such as load shedding and
restoring, load shifting, installing energy-efficient processes and equipment, energy storage
devices, co- generation, non-conventional sources of energy, and reactive power control
Meeting the peak demand is one of the major problems now facing the electric utilities.
With the existing generating capacity being unmanageable, authorities are forced to implement
load shedding in various sectors during most of the seasons. Load shifting will be a better
option for most industries. Load shifting basically means scheduling the load in such a way
that loads are diverted from peak period to off-peak periods, thereby shaving the peak and
filling the valley of the load curve, so improving the load factor .To encourage load shifting in
industries, and thereby to reduce peak demand automatically, Also, power quality is of major
concern to all types of industries, especially those operating with critical machinery and
equipment. Poor quality of power leads to major problems like break-downs, production
interruptions, excess energy consumption etc. Modern industries require automation of their
operation enabling them to produce quality products and also for mass production. The
conventional systems are being replaced by modern Power Electronic systems, bringing a
variety of advantages to the users. Classic examples are DC & AC Drives, UPS, soft starters,
etc. Power Quality Alarming and Analysis provides a comprehensive view into a facility's
electrical distribution system. Power Quality can be monitored at the electrical mains or
at any critical feeder branch in the distribution system such as described here. Devices in
this category typically provide all of the parameters found in basic devices, plus advanced
analysis capabilities. These advanced analysis capabilities include using waveform capture to
collect and view waveform shape and magnitude, providing harmonic analysis graphs,
collection and storage of events and data, and recording single or multiple cycle waveforms
based on triggers such as overvoltage or transients. With the ever-increasing use of
sophisticated controls and equipment in industrial, commercial, and governmental facilities,
the continuity, reliability, and quality of electrical service has become extremely crucial
to many power users. Electrical systems are subject to a wide variety of power quality problems
which can interrupt production processes, affect sensitive equipment, and cause downtime,
scrap, and capacity losses. Momentary voltage fluctuations can disastrously impact production.
the proposed modified intelligent monitoring and controlling system will introduce
monitoring, alarming, controlling, and power quality mitigation based on data collected
and analysed from the system.
SUBSTATION AUTOMATION USING µC AND SCADA 2014
DEPT. OF EEE, MG COLLEGE OF ENGINEERING 3
CHAPTER 2
AUTOMATION
2.1 INTRODUCTION
The word ‘Automation’ is derived from Greek words “Auto” (self) and “Matos” (moving).
Automation therefore is the mechanism for systems that “move by it”. However, apart from
this original sense of the word, automated systems also achieve significantly superior
performance than what is possible with manual systems, in terms of power, precision and speed
of operation.
2.2 DEFINITION
Automation is a set of technologies that results in operation of machines and systems without
significant human intervention and achieves performance superior to manual operation.
AUTOMATION PYRAMID
2.1.1SENSORS AND ACTUATORS LAYERS:
This layer is closest to the process and machines, used to translate signals so that signals can be derived
from processes for analysis and decisions and hence control signals can be applied to the processes.
This forms the base layer of the pyramid also called ‘level 0’ layer.
SUBSTATION AUTOMATION USING µC AND SCADA 2014
DEPT. OF EEE, MG COLLEGE OF ENGINEERING 4
2.1.2 AUTOMATIC CONTROL LAYER:
This layer consists of automatic control and monitoring systems, which drive the actuators
using the process information given by sensors. This is called as ‘level 1’ layer.
2.1.3 SUPERVISORY CONTROL LAYER:
This layer drives the automatic control system by setting target/goal to the controller.
Supervisory Control looks after the equipment, which may consist of several control loops.
This is called as ‘level 2’ layer.
2.1.4 PRODUCTION CONTROL LAYER:
This solves the decision problems like production targets, resource allocation, task allocation
to machines, maintenance management etc. This is called ‘level 3’ layer.
2.1.5 ENTERPRISE CONTROL LAYER:
This deals less technical and more commercial activities like supply, demand, cash flow,
product marketing etc. This is called as the ‘level 4’ layer.
2.3 TYPES OF AUTOMATION
Automation systems can be categorized based on the flexibility and level of integration in
manufacturing process operations. Various automation systems can be classified as follows
2.3.1 FIXED AUTOMATION:
It is used in high volume production with dedicated equipment, which has a fixed set of
operation and designed to be efficient for this set. Continuous flow and Discrete Mass
Production systems use this automation. e.g. Distillation Process, Conveyors, Paint Shops,
Transfer lines etc.
A process using mechanized machinery to perform fixed and repetitive operations in order to
produce a high volume of similar parts.
2.3.2 PROGRAMMABLE AUTOMATION:
It is used for a changeable sequence of operation and configuration of the machines using
electronic controls. However, non-trivial programming effort may be needed to reprogram the
machine or sequence of operations. Investment on programmable equipment is less, as
production process is not changed frequently. It is typically used in Batch process where job
variety is low and product volume is medium to high, and sometimes in mass production also.
e.g. in Steel Rolling Mills, Paper Mills etc.
SUBSTATION AUTOMATION USING µC AND SCADA 2014
DEPT. OF EEE, MG COLLEGE OF ENGINEERING 5
2.3.3 FLEXIBLE AUTOMATION:
It is used in Flexible Manufacturing Systems (FMS) which is invariably computer
controlled. Human operators give high-level commands in the form of codes entered into
computer identifying product and its location in the sequence and the lower level changes are
done automatically. Each production machine receives settings/instructions from computer.
These automatically loads/unloads required tools and carry out their processing instructions.
After processing, products are automatically transferred to next machine. It is typically used in
job shops and batch processes where product varieties are high and job volumes are medium
to low. Such systems typically use Multi purpose CNC machines, Automated Guided Vehicles
(AGV) etc.
2.3.4 INTEGRATED AUTOMATION:
It denotes complete automation of a manufacturing plant, with all processes functioning
under computer control and under coordination through digital information processing. It
includes technologies such as computer-aided design and manufacturing, computer-aided
process planning, computer numerical control machine tools, flexible machining systems,
automated storage and retrieval systems, automated material handling systems such as robots
and automated cranes and conveyors, computerized scheduling and production control. It may
also integrate a business system through a common database. In other words, it symbolizes full
integration of process and management operations using information and communication
technologies. Typical examples of such technologies are seen in Advanced Process Automation
Systems and Computer Integrated Manufacturing (CIM).
SUBSTATION AUTOMATION USING µC AND SCADA 2014
DEPT. OF EEE, MG COLLEGE OF ENGINEERING 6
CHAPTER 3
SCADA
SCADA systems are widely used in industry for Supervisory Control and Data
Acquisition of industrial processes. Companies that are members of standardisation committees
(e.g. OPC, OLE for Process Control) and are thus setting the trends in matters of IT technologies
generally develop these systems. As a matter of fact, they are now also penetrating the
experimental physics laboratories for the controls of ancillary systems such as cooling,
ventilation, power distribution, etc. More recently they were also applied for the controls of
smaller size particle detectors such as the L3 muon detector and the NA48 experiment, to name
just two examples at CERN.
SCADA systems have made substantial progress over the recent years in terms
of functionality, scalability, performance and openness such that they are an alternative to
in house development even for very demanding and complex control systems as those of
physics experiments. This paper describes SCADA systems in terms of their architecture, their
interface to the process hardware, the functionality and application development facilities they
provide. Some attention is paid to the industrial standards to which they abide, their planned
evolution as well as the potential benefits of their use.
3.1 ARCHITECTURE
This section describes the common features of the SCADA products that have been
evaluated at CERN in view of their possible application to the control systems of the LHC
detectors.
3.1.1 HARDWARE ARCHITECTURE
One distinguishes two basic layers in a SCADA system: the "client layer" which caters for
the man machine interaction and the "data server layer" which handles most of the process
data control activities. The data servers communicate with devices in the field through process
controllers. Process controllers, e.g. PLCs, are connected to the data servers either directly or
via networks or fieldbuses that are proprietary (e.g. Siemens H1), or non-proprietary (e.g.
Profibus). Data servers are connected to each other and to client stations via an Ethernet
LAN.
SUBSTATION AUTOMATION USING µC AND SCADA 2014
DEPT. OF EEE, MG COLLEGE OF ENGINEERING 7
3.1.2 SOFTWARE ARCHITECTURE
The products are multi-tasking and are based upon a real-time database (RTDB)
located in one or more servers. Servers are responsible for data acquisition and handling (e.g.
polling controllers, alarm checking, calculations, logging and archiving) on a set of parameters,
typically those they are connected to.
SUBSTATION AUTOMATION USING µC AND SCADA 2014
DEPT. OF EEE, MG COLLEGE OF ENGINEERING 8
CHAPTER 4
PROPOSED BLOCK DIAGRAM
SUBSTATION AUTOMATION USING µC AND SCADA 2014
DEPT. OF EEE, MG COLLEGE OF ENGINEERING 9
CHAPTER 5
PROPOSED FUNCTIONAL BLOCK DESCRIPTION
5.1 MICROCONTROLLER:
The PIC16F87XA is a low power CMOS 8-bit microcontroller based on the AVR
enhanced RISC architecture by executing powerful instructions clock cycle, achieves through
PIC16F87XA puts approaching 1MIPS/MHz allowing the system designer to optimize power
consumption versus processing speed.
Special Features:-
Flash memory : 14.3 Kbytes(8192 words)
Data SRAM : 368 bytes
Data EEPROM : 256 bytes
Self- reprogrammable under software control
In – Circuit serial Programming via two pins(5v)
Watchdog timer with on-chip RC oscillator
Programmable code protection
Power –saving sleep mode
Selectable oscillator options
In – circuit Debug via two pins
Figure 1
SUBSTATION AUTOMATION USING µC AND SCADA 2014
DEPT. OF EEE, MG COLLEGE OF ENGINEERING 10
5.2 RS-232 :
In telecommunications, RS-232 is a standard for serial data communication.
.interconnection between a DTE (Data terminal equipment) and a DCE(Data Circuit-
terminating Equipment).it is commonly used in computer serial ports. is commonly used in
computer serial ports.
5.3 TEMPERATURE SENSOR:
The Temperature sensor detector is designed for the security practice. This sensor
buffers a piezoelectric transducer. As the transducer is displaced from the mechanical neutral
axis, bending creates strain within the piezoelectric element and generates voltages. When
vibration Temperature sensor alarm recognizes temperature it sends a signal to either control
panel developed a new type of Omni-directional high sensitivity security vibrational
temperature detector with Omni-directional detection.
5.4 Lab VIEW:
Short for Laboratory Virtual Instrument Engineering Workbench) is a system-design
platform and development environment for a visual programming language from National
Instruments. The graphical language is named "G" (not to be confused with G-code). Originally
released for the Apple Macintosh in 1986, LabVIEW is commonly used for data acquisition,
instrument control, and industrial automation on a variety of platforms including Microsoft
Windows, various versions of UNIX, Linux, and Mac OS X. The programming language used
in LabVIEW, also referred to as G, is a dataflow programming language. Execution is
determined by the structure of a graphical block diagram (the LV-source code) on which the
programmer connects different function-nodes by drawing wires. These wires propagate
variables and any node can execute as soon as all its input data become available. Since this
might be the case for multiple nodes simultaneously, G is inherently capable of parallel
execution. Multi-processing and multi-threading hardware is automatically exploited by the
built-in scheduler, which multiplexes multiple OS threads over the nodes ready for
executions.
In terms of performance, LabVIEW includes a compiler that produces native code for the CPU
platform. The graphical code is translated into executable machine code by interpreting the
syntax and by compilation. The LabVIEW syntax is strictly enforced during the editing process
and compiled into the executable machine code when requested to run or upon saving. In the
latter case, the executable and the source code are merged into a single file. The executable
runs with the help of the LabVIEW run-time engine, which contains some precompiled code
to perform common tasks that are defined by the G language. The run-time engine reduces
compile time and also provides a consistent interface to various operating systems, graphic
systems, hardware components, etc. The run-time environment makes the code portable across
platforms. Generally, LabVIEW code can be slower than equivalent compiled C code, although
the differences often lie more with program optimization than inherent execution speed.
Libraries with a large number of functions for data acquisition, signal generation, mathematics,
SUBSTATION AUTOMATION USING µC AND SCADA 2014
DEPT. OF EEE, MG COLLEGE OF ENGINEERING 11
statistics, signal conditioning, analysis, etc., along with numerous graphical interface
elements are provided in several LabVIEW package options. The number of advanced
mathematic blocks for functions such as integration, filters, and other specialized capabilities
usually associated with data capture from hardware sensors is immense. In addition, LabVIEW
includes a text-based programming component called MathScript with additional functionality
for signal processing, analysis and mathematics. MathScript can be integrated with graphical
programming using "script nodes" and uses a syntax that is generally compatible
with MATLAB.
5.5 DUAL FULL BRIDGE DRIVER:
The L298 is an integrated monolithic circuit in a 15- lead Multi-watt and PowerSO20
packages. It is a high voltage, high current dual full-bridge driver designed to accept standard
TTL logic levels and drive inductive loads such as relays, solenoids, DC and stepping motors.
Two enable inputs are provided to enable or disable the device independently of the input
signals. The emitters of the lower transistors of each bridge are connected together and the
corresponding external terminal can be used for the connection of an external sensing resistor.
An additional supply input is provided so that the logic works at a lower voltage.
5.6 STEPPER MOTOR
This motor based on the input from PIC will rotates the shaft of auto-transformer and
changes the tapping i.e. at low voltages the shaft is rotated in the clockwise direction and stepup
the voltage level to the required voltage level and vice versa. This in turn is added to the
external power and transmitted out.
Figure 2
SUBSTATION AUTOMATION USING µC AND SCADA 2014
DEPT. OF EEE, MG COLLEGE OF ENGINEERING 12
5.7 POWER SUPPLY
A voltage regulator is designed to automatically maintain a constant voltage level in
the circuit. Here the voltage regulator IC 7805 is used to reduce the high dc voltage to 5V. it is
a member of 78xx series of fixed linear voltage regulator ICs. The voltage source in a circuit
may have fluctuations and would not give the fixed voltage output. The maintains the output
voltage at a constant value. The xx in 78xx indicates the fixed output voltage it is designed to
provide. 7805 provides +5V regulated power supply. Capacitors of suitable values can be
connected at input and output pins depending upon the respective voltage levels.
Figure 3
SUBSTATION AUTOMATION USING µC AND SCADA 2014
DEPT. OF EEE, MG COLLEGE OF ENGINEERING 13
CHAPTER 6
MODIFIED FUNCTIONAL BLOCK DIAGRAM
SUBSTATION AUTOMATION USING µC AND SCADA 2014
DEPT. OF EEE, MG COLLEGE OF ENGINEERING 14
CHAPTER 7
MODIFIED BLOCK DIAGRAM DESCRIPTION
7.1 TRI TAPPED TRANSFORMER
Transformer converts AC electricity from one voltage to another with little loss of
power. Transformers works only with AC and this is one of the reasons why mains electricity
is AC. Step up transformers increase voltage, step down transformers reduce voltage. The input
coil is called primary and output coil is called secondary, There is no electrical connection
between two coils; instead they are linked by an alternating magnetic field created in the soft
iron core of the transformer.
Transformers wastes very little power so the power out is almost equal to the power in.
Not that as voltage is stepped down current is stepped up. The ratio of the number of turns on
each coil, called the turns ratio, determines the ratio of the voltages. A step down transformers
has a large number of turns on its primary which is connected to the high voltage mains supply,
and a small number of turns on its secondary coil to give a low output voltage.
7.2 Bi –PASS RELAY SECTION:
The microcontroller continuously monitors the status of 3 lines originating from Port
A. Whenever any lines fails, the controller came to know that and it activates the corresponding
relay in the bypass circuit to bypass line. The relays detect the abnormal conditions in the
electrical circuits by constantly measuring the electrical quantities which are different under
normal and fault conditions. The electrical quantities which may change under fault conditions
are voltages, current, frequency, and phase angle. Through the changes in one or more of these
quantities, the faults signal their presence, type and location to the protective relays.
7.3 RELAY
Relay is an electromagnetic device which is used to isolate two circuits electrically and
connect them magnetically. They are very useful devices and allow one circuit to switch
another one while they are completely separate. They are often used to interface an electronic
circuit (working at a low voltage) to an electrical circuit which works at very high voltage. For
example, a relay can make a 5V DC battery circuit to switch a 230V AC mains circuit. Thus a
small sensor circuit can drive, say, a fan or an electric bulb. A relay can be divided into two
parts: input and output. The input section has a coil which generates magnetic field when a
small voltage from an electronic circuit is applied to it. This voltage is called the operating
voltage. Commonly used relays are available in different configuration of operating voltages
like 6V, 9V, 12V, 24V etc.
SUBSTATION AUTOMATION USING µC AND SCADA 2014
DEPT. OF EEE, MG COLLEGE OF ENGINEERING 15
The output section consists of contactors which connect or disconnect mechanically. In a basic
relay there are three contactors: normally open (NO), normally closed (NC) and common
(COM). At no input state, the COM is connected to NC. When the operating voltage is applied
the relay coil gets energized and the COM changes contact to NO. Different relay
configurations are available like SPST, SPDT, and DPDT etc., which have different number of
changeover contacts. By using proper combination of contactors, the electrical circuit can be
switched on and off.
7.4 CRYSTAL OSCILLATOR
A crystal oscillator is an electronic oscillator circuit that uses the mechanical resonance
of a vibrating crystal of piezoelectric material to create an electrical signal with a very precise
frequency. This frequency is commonly used to keep track of time (as in quartz wristwatches),
to provide a stable clock signal for digital integrated circuits, and to stabilize frequencies for
radio transmitters and receivers. The most common type of piezoelectric resonator used is the
quartz crystal, so oscillator circuits designed around them became known as "crystal
oscillators."
Quartz crystals are manufactured for frequencies from a few tens of kilohertz to tens of
megahertz. More than two billion (2×109) crystals are manufactured annually. Most are used
for consumer devices such as wristwatches, clocks, radios, computers, and cellphones. Quartz
crystals are also found inside test and measurement equipment, such as counters, signal
generators, and oscilloscopes. A crystal is a solid in which the constituent atoms, molecules,
or ions are packed in a regularly ordered, repeating pattern extending in all three spatial
dimensions.
Almost any object made of an elastic material could be used like a crystal, with
appropriate transducers, since all objects have natural resonant frequencies of vibration. For
example, steel is very elastic and has a high speed of sound. It was often used in mechanical
filters before quartz. The resonant frequency depends on size, shape, elasticity, and the speed
of sound in the material. High-frequency crystals are typically cut in the shape of a simple,
rectangular plate. Low-frequency crystals, such as those used in digital watches, are typically
figure. 4 Single pole double throw switch
SUBSTATION AUTOMATION USING µC AND SCADA 2014
DEPT. OF EEE, MG COLLEGE OF ENGINEERING 16
cut in the shape of a tuning fork. For applications not needing very precise timing, a low-cost
ceramic resonator is often used in place of a quartz crystal. When a crystal of quartz is properly
cut and mounted, it can be made to distort in an electric field by applying a voltage to an
electrode near or on the crystal. This property is known as piezoelectricity. When the field is
removed, the quartz will generate an electric field as it returns to its previous shape, and this
can generate a voltage. The result is that a quartz crystal behaves like a circuit composed of an
inductor, capacitor and resistor, with a precise resonant frequency.
Quartz has the further advantage that its elastic constants and its size change in such a
way that the frequency dependence on temperature can be very low. The specific characteristics
will depend on the mode of vibration and the angle at which the quartz is cut (relative to its
crystallographic axes).[8] Therefore, the resonant frequency of the plate, which depends on its
size, will not change much, either. This means that a quartz clock, filter or oscillator will remain
accurate. For critical applications the quartz oscillator is mounted in a temperature-controlled
container, called a crystal oven, and can also be mounted on shock absorbers to prevent
perturbation by external mechanical vibrations.
7.5 RESISTORS
A resistor is a passive two-terminal electrical component that implements electrical
resistance as a circuit element. The current through a resistor is in direct proportion to the
voltage across the resistor's terminals. Thus, the ratio of the voltage applied across a resistor's
terminals to the intensity of current through the circuit is called resistance. This relation is
represented by Ohm's law: where I is the current through the conductor in units of amperes, V
is the potential difference measured across the conductor in units of volts, and R is the
resistance of the conductor in units of ohms. More specifically, Ohm's law states that the R in
this relation is constant, independent of the current.
Resistors are common elements of electrical networks and electronic circuits and are
ubiquitous in electronic equipment. Practical resistors can be made of various compounds and
films, as well as resistance wire (wire made of a high-resistivity alloy, such as nickel-chrome).
Resistors are also implemented within integrated circuits, particularly analog devices, and can
also be integrated into hybrid and printed circuits.
7.6 CAPACITORS
A capacitor (formerly known as condenser) is a passive two-terminal electrical
component used to store energy in an electric field. The forms of practical capacitors vary
widely, but all contain at least two electrical conductors separated by a dielectric (insulator);
for example, one common construction consists of metal foils separated by a thin layer of
insulating film. Capacitors are widely used as parts of electrical circuits in many common
electrical devices.
SUBSTATION AUTOMATION USING µC AND SCADA 2014
DEPT. OF EEE, MG COLLEGE OF ENGINEERING 17
CHAPTER 8
CIRCUIT DIAGRAM
SUBSTATION AUTOMATION USING µC AND SCADA 2014
DEPT. OF EEE, MG COLLEGE OF ENGINEERING 18
CHAPTER 9
WORKING
We are about to control and monitor the different parameters of a substation particularly
voltage, current ,frequency power ,heat or temperature developed in a transformer. Controlling
includes the voltage restoration ; whenever the voltage level fails, the tapings of the transformer
is being selected by relay switching and for the protection from the over voltage relay trip
switch is employed from over heating of transformer , cooling arrangements are automatically
enhanced.
9.1 MEASUREMENT OF PARAMETERS
9.1.1 VOLTAGE:
Voltage coming to the back feeder is measured by selecting a low voltage taping from
the transformer which will provide an output voltage in the range 0 to 3 V, which is fed to the
ADC port of the microcontroller which converts the analogue voltage to its corresponding
digital signal.
9.1.2 CURRENT:
So as to obtain the current flowing through the load a current dividing circuit ie; the
circuit consisting of a known value highly rated resistance connected in series to the load
produces a small voltage drop across the resistance , which is fed to the ADC of the
microcontroller , with the known value of voltage and resistance we can calculate the current
flowing in the load , which is computed internally in the ALU of the microcontroller.
9.1.3 FREQUENCY :
Frequency is defined as the number of oscillations per second , frequency of the supply
can be found out by inputing a low voltage signal from the supply to the COUNTER/TIMER
pin of the microcontroller after setting the pin to COUNTER mode .The signal voltage is fed
to the COUNTER pin with a comparator as an interfacing device ,which generates only
discrete signals of digital high or digital low ie; the continuous input AC sine wave is
converted to discrete pulses hence with the help of a counter in the microcontroller we can
count the number of digital high or digital low signals occurring in a second,there by we can
measure the frequency.
9.1.4 TEMPERATURE
Temperature developed at the transformer is measured using a temperature sensor
LM35 which produces an analogues voltage for every change of 1oC ,this voltage is fed to the
ADC port of the microcontroller which generates the equivalent digital signal of the
temperature from corresponding analog voltage.
SUBSTATION AUTOMATION USING µC AND SCADA 2014
DEPT. OF EEE, MG COLLEGE OF ENGINEERING 19
9.2 CONTROLLING
Using SCADA we are controlling and monitoring the parameters from the GUI screen of the
computer with a tool LabVIEW ,for the controlling and monitoring it is necessary to transfer
the parameter and control signal data from the host to the server and vice versa .Here a zigbee
module is used for the transfer of parameters and control signal data, according to the data and
value of different parameters the relays will be switched automatically based on different
conditions provided for the regulation and protection.
SUBSTATION AUTOMATION USING µC AND SCADA 2014
DEPT. OF EEE, MG COLLEGE OF ENGINEERING 20
CHAPTER 10
VIRTUAL INSTRUMENT
10.1 FRONT PANNEL
SUBSTATION AUTOMATION USING µC AND SCADA 2014
DEPT. OF EEE, MG COLLEGE OF ENGINEERING 21
10.2 BLOCK DIAGRAM
SUBSTATION AUTOMATION USING µC AND SCADA 2014
DEPT. OF EEE, MG COLLEGE OF ENGINEERING 22
CHAPTER 11
MICROCONTROLLER
To realize this project we used two microcontrollers for two kind of applications; to
design the solar tracker and soar power synchronizer. For both applications PIC16F876
microcontrollers arte used. This chapter deals about the microcontroller.
About PIC16F786
PIC is a family of modified Harvard architecture microcontrollers made by Microchip
Technology, derived from the PIC1650 originally developed by General Instrument's
Microelectronics Division. The name PIC initially referred to "Peripheral Interface Controller"
PICs are popular with both industrial developers and hobbyists alike due to their low cost, wide
availability, large user base, extensive collection of application notes, availability of low cost
or free development tools, and serial programming (and re-programming with flash memory)
figure. 5 Pin out diagram of PIC16F786
SUBSTATION AUTOMATION USING µC AND SCADA 2014
DEPT. OF EEE, MG COLLEGE OF ENGINEERING 23
capability. They are also commonly used in educational programming as they often come with
the easy to use 'pic locator' software. Some of its features are,
High-Performance RISC CPU:
Only 35 single-word instructions to learn
All single-cycle instructions except for program branches, which are two-cycle
Operating speed: DC – 20 MHz clock input, DC – 200 ns instruction cycle
Up to 8K x 14 words of Flash Program Memory, Up to 368 x 8 bytes of Data Memory
(RAM), Up to 256 x 8 bytes of EEPROM Data Memory
Pin out compatible to other 28-pin or 40/44-pin
Peripheral Features:
Timer0: 8-bit timer/counter with 8-bit prescaler
Timer1: 16-bit timer/counter with prescaler, can be incremented during Sleep via
external crystal/clock
Timer2: 8-bit timer/counter with 8-bit period register, prescaler and postscaler
Two Capture, Compare, PWM modules
o Capture is 16-bit, max. resolution is 12.5 ns
o Compare is 16-bit, max. resolution is 200 ns
o PWM max. resolution is 10-bit
Synchronous Serial Port (SSP) with SPI™
(Master mode) and I2C™ (Master/Slave)
Universal Synchronous Asynchronous Receiver
Transmitter (USART/SCI) with 9-bit address
detection
Parallel Slave Port (PSP) – 8 bits wide with
external RD, WR and CS controls (40/44-pin only)
Brown-out detection circuitry for Brown-out Reset (BOR)
Analog Features:
10-bit, up to 8-channel Analog-to-Digital
Converter (A/D)
Brown-out Reset (BOR)
Analog Comparator module with:
o Two analog comparators
o Programmable on-chip voltage reference
(VREF) module
o Programmable input multiplexing from device
inputs and internal voltage reference
O Comparator outputs are externally accessible
SUBSTATION AUTOMATION USING µC AND SCADA 2014
DEPT. OF EEE, MG COLLEGE OF ENGINEERING 24
11.1 CONFIGURING THE PORTS
PIC16F876 consists of 3 ports. This is from PORTA to PORTC. Different ports have
different number of bits. PORTA has 6 bits from PORTA0 toPORTA5. PORTB and PORTC
has 8-bits each. Some pins of theses I/O ports are multiplexed with an alternate function of
peripheral features on the device. In general when a peripheral is enabled, that pin may not be
used as a general I/O pin. Now let’s looks deeper about how a port can be configured as input
or output. Here it is enabled only the two I/O ports, PORT A and PORT B. PORTA is
configured as an analog port while the PORTB is configured as a digital port, to interface with
the LCD module.
11.1.1 PORT A
PORTA is a 6-bit wide, bidirectional port. The corresponding data direction register is
TRISA Setting a TRISA bit (= 1) will make the corresponding PORTA pin an input (i.e., put
the corresponding output driver in a High-Impedance mode). Clearing a TRISA bit (= 0) will
make the corresponding PORTA pin an output (i.e. put the contents of the output latch on the
selected pin). Reading the PORTA register reads the status of the pins, whereas writing to it
will write to the port latch. All write operations are read-modify-write operations. Therefore, a
write to a port implies that the port pins are read, the value is modified and then written to the
port data latch. Pin RA4 is multiplexed with the Timer0 module clock input to become the
RA4/T0CKI pin. The RA4/T0CKI pin is a Schmitt Trigger input and an open-drain output. All
other PORTA pins have TTL input levels and full CMOS output drivers. Other PORTA pins
are multiplexed with analog inputs and the analog V REF input for both the A/D converters
and the comparators. The operation of each pin is selected by clearing/setting the appropriate
control bits in the ADCON1 and/or CMCON registers.
On a Power-on Reset, these pins are configured as analog inputs and read as ‘0’. The
comparators are in the off (digital) state.
The TRISA register controls the direction of the port pins even when they are being
used as analog inputs. The user must ensure the bits in the TRISA register are maintained set
when using them as analog inputs.
Initialization of PORTA
SUBSTATION AUTOMATION USING µC AND SCADA 2014
DEPT. OF EEE, MG COLLEGE OF ENGINEERING 25
BLOCK DIAGRAM OF RA3:RA0
7.2.2 PORT B
PORTB is an 8-bit wide, bidirectional port. The corresponding data direction
register is TRISB. Setting a TRISB bit (= 1) will make the corresponding PORTB pin
an input (i.e., put the corresponding output driver in a High-Impedance mode). Clearing
a TRISB bit (= 0) will make the corresponding PORTB pin an output (i.e., put the
contents of the output latch on the selected pin). Three pins of PORTB are multiplexed
with the In-Circuit Debugger and Low-Voltage Programming function: RB3/PGM,
RB6/PGC and RB7/PGD.
figure. 6 Internal block diagram of the analog Pins RA0 to RA3
SUBSTATION AUTOMATION USING µC AND SCADA 2014
DEPT. OF EEE, MG COLLEGE OF ENGINEERING 26
C H A P T E R 1 2
L A B V I E W
1 2 . 1 INTRODUCTION
LabVIEW (short for Laboratory Virtual Instrumentation Engineering Workbench)
is a platform and development environment for a visual programming language from
National Instruments. The graphical language is named "G". Originally released for the
Apple Macintosh in 1986, LabVIEW is commonly used for data acquisition, instrument
control, and industrial automation on a variety of platforms including Microsoft Windows,
various flavors of UNIX, Linux, and Mac OS X. The latest version of LabVIEW is version
LabVIEW 2013. Visit National Instruments at www.ni.com.
The code files have the extension “.vi”, which is an abbreviation for “Virtual Instrument”.
LabVIEW offers lots of additional Add-Ons and Toolkits.
12.2 DATAFLOW PROGRAMMING
The programming language used in LabVIEW, also referred to as G, is a dataflow
programming language. Execution is determined by the structure of a graphical block
diagram (the LV-source code) on which the programmer connects different function-nodes
by drawing wires. These wires propagate variables and any node can execute as soon as all
its input data become available. Since this might be the case for multiple nodes
simultaneously, G is inherently capable of parallel execution. Multi-processing and multi-
threading hardware is automatically exploited by the built-in scheduler, which multiplexes
multiple OS threads over the nodes ready for execution.
12.3 GRAPHICAL PROGRAMMING
LabVIEW ties the creation of user interfaces (called front panels) into the development
cycle. LabVIEW programs/subroutines are called virtual instruments (VIs). Each VI has
three components: a block diagram, a front panel, and a connector panel. The last is used to
represent the VI in the block diagrams of other, calling VIs. Controls and indicators on the
front panel allow an operator to input data into or extract data from a running virtual
instrument. However, the front panel can also serve as a programmatic interface. Thus a
virtual instrument can either be run as a program, with the front panel serving as a user
interface, or, when dropped as a node onto the block diagram, the front panel defines the
inputs and outputs for the given node through the connector pane. This implies each VI can
be easily tested before being embedded as a subroutine into a larger program.
The graphical approach also allows non-programmers to build programs simply by
dragging and dropping virtual representations of lab equipment with which they are already
familiar. The LabVIEW programming environment, with the included examples and the
documentation, makes it simple to create small applications. This is a benefit on one side, but