Control Systems in LabVIEW - Overview
Control Systems in LabVIEW - Overview
page=labview
http://home.hit.no/~hansha/?page=labview
These are the main modules we use in the different
courses at Telemark University College:
LabVIEW (LabVIEW Professional Development System 32-Bit: English)
NI-DAQmx (Hardware Driver for NI USB-6008, NI TC-01, etc.)
LabVIEW Control Design and Simulation Module
LabVIEW MathScript RT Module
Note! These packages are separate downloads!
All LabVIEW Software can be downloaded here: www.ni.com/download
LabVIEW Training
Here you will find lots of Videos, Tutorials and Exercises
LabVIEW Course:
http://home.hit.no/~hansha/?training=labview
Learning by Doing!
It is recommended that you watch some of the videos before you read furter
National Instruments is National Instruments creates
the vendor of LabVIEW both Hardware and Software
LabVIEW = Fun!
Graphical Programming:
Very different from traditional programming like VB, C#,
Maple, MATLAB, MathScript, etc.
It is more like a drawing program than a Programming
Language
This makes it easy to use for those who are not programmers
(or dont like programming J)
Excellent tool when using Hardware, when you need to take
Measurements (DAQ), etc.
It is fun and makes you very creative!
LabVIEW Example
LabVIEW has the same things as other programming languages, but in a graphical way!
Sequence Structure Comment While Loop Sub VI Local Variable
(Function/Method)
Wi-Fi DAQ
Water Tank
USB-6008
Pt-100
TC-01
ZigBee Arduino
Vision System
cRIO
NOx Sensor
LabVIEW
This is the core LabVIEW installation that installs
the LabVIEW Programming Environment.
DCS
PLC
SCADA
Industrial Control Systems (ICS)
Industrial Control Systems are computer controlled systems that monitor and control industrial
processes that exist in the physical world
cRIO
LabVIEW
Programmable Automation
Controller (PAC) Industrial PID
PC based Control System/SCADA
Controller
System (Supervisory Control And
Data Acquisition) I/O Module
DeltaV
Siemens PLC
PC-based Control System
PID Control using LabVIEW and I/O Module
Industrial PID Controller
PC-based Control System
Process Examples
0-5V/1-5V 0-5V
Analog In Analog Out
Controller (PID) and Lowpass Filter
Measurement(s) Control Signal
- + - + Implementation
DA Converter USB
USB-6008
PC-based Control System
PC-based Control System
LabVIEW Example (Simulation)
Mathematical Model
of the Process
Feedback Loop
Feedback Node
PC-based Control System LabVIEW Example (Real process)
Built-in PID
Controllers:
Kp Ti Td
r e u y
PID Process
-
Sensor
Control System implementation with Pen & Paper v
Kp Ti Td
r e u y
PID Process
-
Sensor
Control System implementation in LabVIEW
Sensor
Control System implementation in LabVIEW
This alternative
uses seconds!
Note! The functions PID.vi and PID Advanced.vi requires that Ti and Td is in
minutes, while its normal to use seconds as the unit for these parameters. You can
use the following piece of code in order to transform them:
This means we enter values for Ti and Td in secons on the Front Panel and the values
are converted to minutes in the code.
Help -> Find Examples...
PID Control Demo
Students: Try the General PID Simulator
example that is included with LabVIEW
PID Controller Alternative 1a
PID Advanced VI + While Loop
PID Controller Alternative 1b
Measurement Signal
AD Converter
USB
AD Analog to Digital
DA Digital to Analog
Continuous Signal
k = 0, 1, 2, 3, 4, ....
Discretization Methods
Euler forward method:
Other methods are Zero Order Hold (ZOH), Tustins method, etc.
Discretization Example
Given the following continuous system:
Example:
Discrete Lowpass Filter
This gives:
We use the Euler Backward method:
Feedback Loop
Feedback Node
PC-based Control System LabVIEW Example (HMI/GUI)
Do you need more Practice? - Select a Challenge
E-mail: [email protected]
Blog: http://home.hit.no/~hansha/