+ All Categories
Home > Documents > Using Labview to Teach Process Control Laboratory Courses Through the Internet.

Using Labview to Teach Process Control Laboratory Courses Through the Internet.

Date post: 07-Apr-2018
Category:
Upload: joseluizol
View: 219 times
Download: 0 times
Share this document with a friend
13
 1 USING LabVIEW TO TEACH PROCESS CONTROL LABORATORY COURSES THROUGH THE INTERNET. VALENTÍN PÉREZ-HERRANZ Profesor Titular de Universidad. Depto. Ingeniería Química y Nuclear. Universidad Politécnica de Valencia. Camino de Vera S/N. 46071 VALENCIA. Category: Academic Products used: LabVIEW, DataSocket, DAQ board Lab PC+ The challenge: The number of students at Spanish universities is increasing constantly. However, economic resources do not grow proportionally, which results either in a decrease of laboratory practices, or in too numerous work teams. The solution: The use of new software applications and Internet communication tools, allows for several users to access complex or expensive instrument systems simultaneously. Hence, these tools can be used to solve the problems mentioned above.
Transcript

8/4/2019 Using Labview to Teach Process Control Laboratory Courses Through the Internet.

http://slidepdf.com/reader/full/using-labview-to-teach-process-control-laboratory-courses-through-the-internet 1/13

 

1

USING LabVIEW TO TEACH PROCESS CONTROL LABORATORY

COURSES THROUGH THE INTERNET.

VALENTÍN PÉREZ-HERRANZ

Profesor Titular de Universidad.

Depto. Ingeniería Química y Nuclear. Universidad Politécnica de Valencia.

Camino de Vera S/N. 46071 VALENCIA.

Category: Academic

Products used: LabVIEW, DataSocket, DAQ board Lab PC+

The challenge:

The number of students at Spanish universities is increasing constantly.

However, economic resources do not grow proportionally, which results either in a

decrease of laboratory practices, or in too numerous work teams.

The solution:

The use of new software applications and Internet communication tools, allows

for several users to access complex or expensive instrument systems simultaneously.

Hence, these tools can be used to solve the problems mentioned above.

8/4/2019 Using Labview to Teach Process Control Laboratory Courses Through the Internet.

http://slidepdf.com/reader/full/using-labview-to-teach-process-control-laboratory-courses-through-the-internet 2/13

 

2

Summary

In this work, a laboratory experiment for the conductivity control in a chemical

stirred tank reactor, using the Internet, is described. The system is based on a client-

server architecture developed using LabVIEW. The server application is running in a

computer located in the process laboratory, and is used as the data acquisition and

control system. The client applications are running in the computer’s laboratory, and

they are used to manipulate the data sent by the server.

8/4/2019 Using Labview to Teach Process Control Laboratory Courses Through the Internet.

http://slidepdf.com/reader/full/using-labview-to-teach-process-control-laboratory-courses-through-the-internet 3/13

 

3

INTRODUCTION.

Process dynamics and control are important matters in chemical engineering

undergraduate curricula. However, many difficulties are encountered when teaching

  process dynamics and control as part of a chemical engineering degree. These

difficulties range from a lack of time available to teach even the most fundamental

  principles to the increase in the class sizes and the decrease in resources of money.

These problems cause that students have to carry out fewer experiments or have to work 

in large groups. On the other hand, laboratory exercises are extremely important to

learning because they help students make intellectual transition from theory to practice.

One solution to the problems mentioned before is to use the new software

technologies, such as LabVIEW, for the development of virtual instruments, and the

tools for computer interconnection though the Internet to design applications for process

control laboratory courses.

One advantage of this type of operation is the easy and efficient use of expensive

or complex instrumentation systems. The remote access to measurement systems allows

the interaction between students and instrumentation without the need to physically

move people or bulk instrumentation. A second advantage coming from the availability

of a remote instrumentation is the possibility of arranging measurement systems which

are controlled from a single position and are able to perform complex measurements

strictly related to the site where instrumentation is located. This working option is of 

interest for universities with a large number of students due to the cost of the

experimental laboratories.

In this work, a laboratory experiment for the conductivity control in a chemical

stirred tank reactor, using the Internet, is described. The proposed technique is based on

a client-server architecture, which is described below. With this technique, many users

can simultaneously share remote measurement and control by using suitable client

  procedures that interact with a server program running on a computer physically

connected to the controlled system.

8/4/2019 Using Labview to Teach Process Control Laboratory Courses Through the Internet.

http://slidepdf.com/reader/full/using-labview-to-teach-process-control-laboratory-courses-through-the-internet 4/13

 

4

DESCRIPTION OF THE CLIENT-SERVER ARCHITECTURE.

A client-server environment as shown in Figure 1 has been designed and

implemented. The general architecture consists of a set of 30 client stations located in a

computer laboratory, all networked to a server station, which is located in the laboratory

where the plant to be controlled is situated. The computer situated in the laboratory of 

the experimental plant acts as data acquisition and control system. The acquired data are

distributed across the network to the rest of the clients were the data are analyzed. In

order to remotely control the plant from the computer laboratory, one of the computers,

named Remote Controller in Figure 1, is used to send information to the server. This

information is given in terms of the controller status, set-points and controller 

 parameters in the automatic operation mode, and the value of the manipulated variable

in the manual operation mode.  This feature allows the experimental system to be

operated via any computer connected to the Internet.

To enable the system to be operated, three applications have been developed that

allows the users to access similar displays to those available on the control system:

• The server application is constantly running in the Computer Server

Station. It contains the network related procedures on the server side. The

server contains also the procedures related to the instrument management. It

has been designed to operate with serial ports and is used to manage

acquisition boards, which are employed for the control purposes.

• The client application contains the procedures that are related to the network 

of the client side as well as to the measurements processing. This application

  permits the data to be saved in order to be manipulated further withconventional spreadsheet programs.

• The third application, which is running in the Remote Controller computer,

contains the procedures that are related to the user interface of the controller 

  parameters. This application has been developed in order to avoid that

different students from different computers could send contradictory orders

to the controller at the same time.

8/4/2019 Using Labview to Teach Process Control Laboratory Courses Through the Internet.

http://slidepdf.com/reader/full/using-labview-to-teach-process-control-laboratory-courses-through-the-internet 5/13

 

5

The applications have been developed using the program LabVIEW from

 National Instruments. LabVIEW is a graphical programming language for building data

acquisition and instrumentation systems, and is ideally suited for the collection and

distribution of data for process monitoring and control applications. It facilitates fast

  program development, provides many powerful built-in functions, and has universal

acceptance in research and manufacturing settings.

The remote connection between the server and the clients was done using

DataSocket. DataSocket is a new Internet programming technology that simplifies data

exchange between computers and applications. It has been designed for sharing and

 publishing live data in measurement and automation applications over the Internet and

respond to multiple users without the complexity of low-level TCP programming. To

 perform these tasks using DataSocket technology two basics steps must be performed:

• Open a DataSocket connection using a name you choose to identify the data.

• Write data to that connection as you compute new results.

The graphical user interfaces (GUI) of the server station, clients and remote

controller are shown in Figures 2 to 4 respectively. In the GUI of the server station,

Figure 2, the actual controller status, the controller parameters, set point and process

variables are indicated. Two graphics can also be seen where the controlled variable and

the signal sent to the final control element are represented. In the box situated at the left

top corner of the GUI is indicated the IP address of the computer where the remote

controller application is running. In the client GUI, Figure 3, the data received from the

server station are represented. Analogously to Figure 2, the IP address of the server 

station is indicated in the box situated at the left top corner of the GUI. In Figure 4 theGUI of the remote controller is shown. In this application, the control status, acid flow,

set point or controller parameters can be modified and sent to the server station, whose

IP address must be given to the program. This application is protected with a password

in order to avoid running simultaneously this application from different computers.

Finally in Figure 5 a part of the block diagram corresponding to the server station can be

seen. It illustrates how to write and read the process data using DataSocket.

8/4/2019 Using Labview to Teach Process Control Laboratory Courses Through the Internet.

http://slidepdf.com/reader/full/using-labview-to-teach-process-control-laboratory-courses-through-the-internet 6/13

 

6

DESCRIPTION OF THE EXPERIMENTAL EQUIPMENT.

Figure 6 shows a simplified diagram of the experimental arrangement. It consists

of a 2 l. cylindrical chemical stirred tank reactor (CSTR) in which the control of the

solution conductivity takes place. For this purpose, two streams enter the reactor. One of 

the streams is tap water with a flow rate FW and conductivity λ W. This stream acts as

disturbance and is fed to the reactor using a centrifugal pump. The other stream is a

0.02 M solution of hydrochloric acid with a flow rate FA and conductivity λ A. The

hydrochloric acid flow rate, FA, which is applied using a MAXTERFLEX, L/S, 10-47

 peristaltic pump, is used to control the conductivity, λ , of the solution inside the reactor.

The liquid in the tank overflows, then the volume of the liquid in the tank is considered

constant.

Conductivity values are measured using a CRISON conductivity-meter. The data

are fed into the computer via a Lab-PC+ data acquisition (DAQ) board from National

Instruments. The flow, FA, supplied by the peristaltic pump, is controlled through a

0-5 V analog voltage signal, which is applied by the analog output of the DAQ board.

The voltage applied to the peristaltic pump and the flow, FA, are related by a

 proportional gain, K F = 17.2Vh

l. The main parameters are measured with a sample

time of 1 s. In order to smooth drastic variations during conductivity measurement, the

arithmetic mean value of 20 conductivity values are calculated. The runs are carried out

at room temperature.

It is possible to run the experiment with or without control. Control strategies

available are P, PI or PID. When running without control, the acid flow in, FA, can be

modified through the voltage applied to the peristaltic pump. In this case, it is given the

open loop response of the system. When using automatic control, the set point and the

controller parameters can be modified. For a P controller, the parameters τI and τD are

zero, while for a PI controller, τD is zero.

8/4/2019 Using Labview to Teach Process Control Laboratory Courses Through the Internet.

http://slidepdf.com/reader/full/using-labview-to-teach-process-control-laboratory-courses-through-the-internet 7/13

 

7

CONCLUSIONS.

An experimental laboratory project to control the conductivity in a CSTR 

through the Internet has been developed. For this purpose, client-server applications to

allow PCs to communicate with the control system have been developed using

LabVIEW. These applications enhance the flexibility of the system for teaching

  purposes, and are especially suitable for universities with a large number of students.

The system can be used also for distance education and remote control of process

equipment.

This facility can be applied to control other systems such as pH control, level

control, or temperature control with little changes in the process equipment. Moreover 

other control algorithms can be applied to the control system with little programming

effort.

8/4/2019 Using Labview to Teach Process Control Laboratory Courses Through the Internet.

http://slidepdf.com/reader/full/using-labview-to-teach-process-control-laboratory-courses-through-the-internet 8/13

 

8

Figura 1

8/4/2019 Using Labview to Teach Process Control Laboratory Courses Through the Internet.

http://slidepdf.com/reader/full/using-labview-to-teach-process-control-laboratory-courses-through-the-internet 9/13

8/4/2019 Using Labview to Teach Process Control Laboratory Courses Through the Internet.

http://slidepdf.com/reader/full/using-labview-to-teach-process-control-laboratory-courses-through-the-internet 10/13

 

10

Figura 3

8/4/2019 Using Labview to Teach Process Control Laboratory Courses Through the Internet.

http://slidepdf.com/reader/full/using-labview-to-teach-process-control-laboratory-courses-through-the-internet 11/13

 

11

Figura 4

Figura 5

8/4/2019 Using Labview to Teach Process Control Laboratory Courses Through the Internet.

http://slidepdf.com/reader/full/using-labview-to-teach-process-control-laboratory-courses-through-the-internet 12/13

 

12

Figura 6

8/4/2019 Using Labview to Teach Process Control Laboratory Courses Through the Internet.

http://slidepdf.com/reader/full/using-labview-to-teach-process-control-laboratory-courses-through-the-internet 13/13

 

13

Indice

de

Figuras.

Figure 1. Client-Server architecture for the remote control.

Figure 2. Graphical User Interface (GUI) of the server application.

Figure 3. Graphical User Interface (GUI) of the client applications.

Figure 4. Graphical User Interface (GUI) of the remote controller.

Figure 5. Block diagram example of the use of DataSocket in LabVIEW programming.

Figure 6. Diagram of the experimental setup.


Recommended