University College of Southeast Norway. LM-900 Level Tank. Hans-Petter Halvorsen,

Similar documents
Simulation in LabVIEW. Hans-Petter Halvorsen, M.Sc.

DAQ in MATLAB HANS-PETTER HALVORSEN,

Datalogging in LabVIEW

Data Acquisition HANS-PETTER HALVORSEN,

State Estimation with Observers

Control and Simulation in. LabVIEW

NI mydaq HANS-PETTER HALVORSEN, Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics

Data Acquisition in LabVIEW

Solutions. Discretization HANS-PETTER HALVORSEN,

Industrial IT Laboratory Work Hans-Petter Halvorsen

Virtual Instruments with LabVIEW

Wireless DAQ using ZigBee

University College of Southeast Norway. Control and Simulation. in LabVIEW. Hans-Petter Halvorsen,

Using SQL Server in C#

NI Vision System HANS- PETTER HALVORSEN,

Høgskolen i Telemark Telemark University College Department of Electrical Engineering, Information Technology and Cybernetics.

Wireless Data Acquisition in. LabVIEW

Introduction to ERwin

Modbus Hans-Petter Halvorsen

Unit Testing. Quiz with Explainations. Hans-Petter Halvorsen, M.Sc.

With respect to the National Instruments software product(s) being used, the following patents may apply:

Lab Exercise 2: Data Acquisition with NI LabVIEW

Visual Studio Team Services

BE/EE189 Design and Construction of Biodevices Lecture 5. BE/EE189 Design and Construction of Biodevices - Caltech

University College of Southeast Norway. Web Services. with Examples. Hans-Petter Halvorsen,

Data Acquisition Laboratory

The data acquisition components, and their relationship to each other, are shown below.

NI USB-TC01 Thermocouple Measurement Device

Dept. of Electrical, Computer and Biomedical Engineering. Instrumentation for the data acquisition laboratory

LabVIEW Core 1. What You Need To Get Started. File Locations. The course installer places the course files in the following location: ni.

Raspberry Pi. Hans-Petter Halvorsen, M.Sc.

Create a Virtual Test Environment

To demonstrate wide range of experiments, applications and advanced control techniques using industry standard instrumentation and controls.

ENGR 1000, Introduction to Engineering Design

Introduction to Simulink

MATLAB Examples. Simulink. Hans-Petter Halvorsen, M.Sc.

ni.com/training Quizzes LabVIEW Core 1 ni.com/training Courses Skills learned: LabVIEW environment Certifications Skills tested: LabVIEW environment

Step-by-Step Data Acquisition Part II Exercise 2: Generating an Analog Output Waveform

Measurement & Automation Explorer (MAX) View and control your devices and software

High-Speed M Series Multifunction DAQ 16-Bit, up to 1.25 MS/s, up to 80 Analog Inputs

Sensors and Actuators with Arduino. Hans-Petter Halvorsen, M.Sc.

Process Control and Instrumentation Technology Model: PCT-200

High-Accuracy M Series Multifunction DAQ 18-Bit, up to 625 ks/s, up to 32 Analog Inputs

MATLAB Examples. Flow Control and Loops. Hans-Petter Halvorsen, M.Sc.

MATLAB Examples. Interpolation and Curve Fitting. Hans-Petter Halvorsen

Software Architecture

What s New in Data Acquisition

LabVIEW Tutorials. T.1 Temperature Measurement and Cold Junction Compensation (CJC) LUMS School of Science and Engineering

Propeller Control of Wind Tunnel Models

Level control with DeltaV using MPC

Introduction to LabVIEW

ITI User Guide. ISOBUS Test Interface

Multidisciplinary Senior Design

OPC and Real-Time Systems. in LabVIEW

Team Foundation Server Visual Studio Team Services. Hans-Petter Halvorsen, M.Sc.

Software Architecture

Hands-on Lab 2: LabVIEW NI-DAQ Basics 2

Flow Visualization. Detailed Design Review 2/15/08

Additional products and features

LabVIEW control solutions on Mac. Christophe Salzmann. Ecole Polytechnique Fédérale de Lausanne - Switzerland

ME 224: EXPERIMENTAL ENGINEERING. Lecture 2

LC-3 Flow Monitor & Pump Run Verification

SCB-68 User Guide. 68-Pin Shielded Desktop Connector Block

LC-5 Level Controller & Flow Monitor

LC-1 Level Controller & Flow Monitor

Hardware: Acquiring Data and Communicating with Instruments

Quanser NI-ELVIS Trainer (QNET) Series: QNET DCMCT. DC Motor Control Trainer (DCMCT) User Manual. User Manual

Design of Liquid Level Control System Based on Simulink and PLC

Advanced NI-DAQmx Programming Techniques with LabVIEW

Portable E Series Multifunction DAQ 12 or 16-Bit, up to 1.25 MS/s, 16 Analog Inputs

1. Learn about LabView software and its different components

A liquid level control system based on LabVIEW and MATLAB hybrid programming

OpenStax-CNX module: m Thermometer VI * National Instruments

48-Bit Isolated Digital I/O

Vernier SensorDAQ User s Manual

UML. Quiz with Explainations. Hans-Petter Halvorsen, M.Sc.

Programming. Languages & Frameworks. Hans-Petter Halvorsen, M.Sc. O. Widder. (2013). geek&poke. Available:

Software Implementation

Database Views & Stored Procedures. Hans-Petter Halvorsen, M.Sc.

NI USB-9201/9221. Introduction USER GUIDE AND SPECIFICATIONS. 8-Channel, 12-Bit Analog Input Devices

Ch En 475: Introduction to Instrumentation and Signal Processing with Labview

Intelligent Systems Research Laboratory

INTRODUCTION TO LABVIEW

Multifunction DAQ Accessory and Cable Selection Guides

PAST PRESENT & FUTURE TRENDS IN INDUSTRIAL AUTOMATION

with SCADA and PID Control CPIC

Implementation of ON/OFF and PID controller using TCP Protocol Based on Virtual Instrumentation

M Series USB-6221/6225/6229/6251/6255/6259 OEM Devices

A variety of ECONseries modules provide economical yet flexible solutions

Agilent 3630A Triple DC Power Supply. Agilent 34401A Digital Multimeter (DMM)

Low-Cost Multifunction DAQ for USB

E Series Multifunction I/O 1.25 MS/s, 12-Bit, 16 or 64 Analog Inputs

Non-Contact Water Level Monitoring using Labview with Arduino and Ultrasonic Sensor

Programming for the LabVIEW Real-Time Module Using LabWindows/CVI

NI USB Introduction USER GUIDE AND SPECIFICATIONS. 4-Channel, 0 20 ma, 16-Bit Analog Current Output Module

Lab Exercise 4: Analog & Digital I/O Signals

High-Speed M Series Multifunction DAQ 16-Bit, up to 1.25 MS/s, up to 80 Analog Inputs

SCADA. EDIBON Computer Control System: Computer Control + Data Acquisition + Data Management Cables to. Cable to computer. Control.

Ch En 475: Introduction to Instrumentation and Signal Processing with Labview

IOT BASED WATER LEVEL MONITORING SYSTEM USING LABVIEW

Transcription:

University College of Southeast Norway LM-900 Level Tank Hans-Petter Halvorsen, 2016.10.26 http://home.hit.no/~hansha

Table of Contents Table of Contents... ii 1 Introduction... 1 2 System Description... 2 2.1 Operation... 2 2.1.1 Power... 2 2.1.2 Pump (inflow)... 2 2.1.3 Valve (outflow)... 3 2.1.4 Level measurement... 3 2.2 Connectors, switches, and indicators... 3 2.3 Mathematical model... 4 3 Fuji PYZ5 PID-controller... 5 4 NI USB-6008... 7 5 LabVIEW Control Design & Simulation Module... 9 5.1 PID Control... 13 ii

1 Introduction This document gives a short description of the liquid tank of the LM-900 Level Control System. The LM-900 Level Control System has a built-in Fuji PYZ5 PID-controller. The focus will be to connect the system to a PC and create a simulation and control system in LabVIEW, C#.NET, etc. A proper development tool would be LabVIEW with LabVIEW Control Design & Simulation Module and LabVIEW PID and Fuzzy Logic Toolkit. A proper DAQ device would be the NI USB-6008 DAQ device from National Instruments, the inventor of LabVIEW. The NI USB-6008 DAQ device is simple to configure and use. The NI USB-6008 DAQ device is described in detail in the document NI USB-6008 DAQ Device.pdf. All documents are available from http://home.hit.no/~hansha/. 1

2 System Description The Figure below shows the liquid tank (LM-900 Level Control System). 2.1 Operation 2.1.1 Power The tank is powered via a mains switch. 2.1.2 Pump (inflow) A pump fills the tank with water from the reservoir. The pump speed can be controlled by a voltage signal in the range 0-5V. The pump can be controlled by an external voltage signal at the FROM PC connector, or by the inbuilt Fuji level controller. The LOCAL/PC switch is used to select between external control and internal control. 2

3 System Description 2.1.3 Valve (outflow) Water flows from the bottom of the tank to the reservoir via a pipe in which there is a manually operated valve. 2.1.4 Level Measurement The water level is measured by a level sensor. The measurement is a voltage signal in the range 0-5V available at the TO PC connector. This voltage range corresponds to a level range of 0-20 cm, approximately (unless you need a more accurate relation, you can assume this range in your applications). The level sensor is based on measurement of the air pressure in the air pipe. The higher level - the higher hydrostatic pressure at the pipe outlet at the bottom. The pipe must always be filled by air - no water. You adjust the purge meter to ensure that the pipe is filled by air (bubbles should be seen from the pipe). 2.2 Connectors, switches, and indicators Connectors: The FROM PC connectors (the upper is plus, and the lower is minus or ground): Connect here the analog output (AO) signal from the I/O equipment (e.g. DAQ card, DAQPad, FieldPoint).

4 System Description The TO PC connector (the upper is plus, and the lower is minus or ground): Connect here the analog input (AI) signal to the I/O equipment. The LOCAL/PC switch: In PC position measurement and control is via I/O equipment (as PC with I/O card). In LOCAL position the internal PID controller Fuji PYZ5 PID-controller is used for control. Other connectors are for interlocking functions (normally not used in simple applications). LED indicators (light emitting diodes) PV and OUT are for indicating level measurement (PV = Process Value) and control signal (OUT). 2.3 Mathematical model A simple mathematical model of the water tank is as follows: or Ax = K(u u ( ) F +,- x = 1 A K(u u () F +,- Where: x [cm] is the level u [V] is the pump control signal to the pump u 0 is the bias voltage needed to get any flow (with u less than u0 there is no flow into the tank) A [cm2] is the cross-sectional area K [(cm3/s)/v] is the pump gain F out [cm3/s] is the outflow through the valve (this outflow can be modeled more accurately taking into account the valve characteristic expressing the relation between pressure drop across the valve and the flow through the valve).

3 Fuji PYZ5 PID-controller The LM-900 Level Control System has a built-in Fuji PYZ5 PID-controller. The built-in controller is described in detail in the Instruction Manual Fuji PYZ5 PID Controller.pdf. The Fuji PYZ5 PID-controller Display: 5

6 System Description

4 NI USB-6008 NI USB-6008 DAQ device is a simple and low-cost multifunction I/O device from National Instruments. The device has the following specifications: 8 analog inputs (12-bit, 10 ks/s) 2 analog outputs (12-bit, 150 S/s) 12 digital I/O USB connection, No extra power-supply neeeded Compatible with LabVIEW, LabWindows/CVI, and Measurement Studio for Visual Studio.NET NI-DAQmx driver software The NI USB-6008 is well suited for education purposes due to its small size and easy USB connection. The NI USB-6008 DAQ device is described in detail (how the NI USB-6008 DAQ device works and how to use it in LabVIEW) in the document NI USB-6008 DAQ Device.pdf. The document is available from: http://home.hit.no/~hansha/. 7

8 System Description For more details, see http://sine.ni.com/nips/cds/view/p/lang/en/nid/14604

5 LabVIEW Control Design & Simulation Module 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". For more information about LabVIEW, go through the training kit An Introduction to LabVIEW. This document and other information about LabVIEW are available from: http://home.hit.no/~hansha/. In LabVIEW there is an additional module for design and simulation of control systems, called LabVIEW Control Design and Simulation Module and a toolkit called LabVIEW PID and Fuzzy Logic Toolkit. Control Design and Simulation VIs are available from the Control Design and Simulation palette: In the Simulation Sub palette we have the Control and Simulation Loop which is very useful in simulations: 9

10 LabVIEW Control Design & Simulation Module In the Continuous Linear Systems Sub palette we want to create a simulation model: The most used blocks are Integrator, Transport Delay, State-Space and Transfer Function. The Signal Arithmetic Sub palette is also useful when creating a simulation model:

11 LabVIEW Control Design & Simulation Module Example: Simulation Model Below we see an example of a simulation model created in LabVIEW. Example: Simulation Below we see an example of a simulation model using the Control and Simulation Loop. Notice the following: Click on the border of the simulation loop and select Configure Simulation Parameters

12 LabVIEW Control Design & Simulation Module The following window appears (Configure Simulation Parameters): In this window you set some Parameters regarding the simulation, some important are: Final Time (s) set how long the simulation should last. For an infinite time set Inf. Enable Synchronized Timing - Specifies that you want to synchronize the timing of the Control & Simulation Loop to a timing source. To enable synchronization, place a checkmark in this checkbox and then choose a timing source from the Source type list box.

13 LabVIEW Control Design & Simulation Module Click the Help button for more details. You may also set some of these Parameters in the Block Diagram: You may use the mouse to increase the numbers of Parameters and right-click and select Select Input. 5.1 PID Control In the PID Sub palette we have the functions/subvis for PID Control. I recommend that you use the PID Advanced.vi. Example: PID Control Below we see how we can use the PID Advanvanced.vi in order to control a simulated Model.

14 LabVIEW Control Design & Simulation Module

Hans-Petter Halvorsen, M.Sc. E-mail: hans.p.halvorsen@hit.no Blog: http://home.hit.no/~hansha/ University College of Southeast Norway www.usn.no