Beruflich Dokumente
Kultur Dokumente
Learning Outcomes
Design PID controllers with LabVIEW
Implement PID control algorithms for level control
Simulate PID control systems with Auto/Man switch mode
Use PtByPt Integral and Derivative functions
Use PID Control functions of the PID Control Toolkit
Use Formula Node and 4th-order RK Method
PID Control Algorithms Design and Simulation with LabVIEW
The PID control law is:
t
u = K p e + K i edt + K d
0
de
1
de
or u = K p e + edt + Td
dt
Ti 0
dt
Kp
100
; Ki =
; K d = K p Td
Kp
Ti
Transfer function:
K
U
1
U
= K p + i + K d s or
= K p 1 +
+ Td s
E
s
E
Ti s
PB =
PID Controller
SP
PV
Comparator
Subtract
Multiply
Kp
Sum
(Compound
Arithmetic)
P
Multiply
Integral uin
KI
Select
I
Multiply
uin
Derivative
Auto/Man
KD
OP
Auto
(Control signal)
4
To Actuator
Figure 1 Block diagram algorithm for PID control with Auto/Man switch mode
Notes: In LabVIEW PID Control Toolkit (Control Design and Simulation Module) there are
some PID control functions you can use.
The following shows the level control system with all components:
pc
Cross-sectional A
qi
Liquid supply
20-100 kPa
Pneumatic
I/P
supply 140 kPa
4-20mA
hm
LC
LT
Tank
PC 4-20mA
PID
h
qo
Resistance R
We need to match units for each component as shown in block diagram in Fig. 3.
Ps [kPa]
[V]
[mm]
Hsp
Km
[V]
H sp
+_
[V]
[kPa]
Pc
KIP
[kPa]
Kv
Qin
[mm]
H
G
A/M
PID
[V] < [mA] Hm
Km
Figure 4 PID control algorithm 1 using PtByPt Integral and Derivative functions (Signal
Processing)
2
Hands-on Exercise 4 PID control algorithm using Formula Node and RK method
Open the On-Off Level Control > Save as PIDLevelControlSysSim04.vi (we can start
from an earlier version of level system simulator)
Modify in a way that the Simulation Loop is replaced with a While Loop.
Refer to PID Control Algorithm 4:
Save the VI frequently
Run and test the VI functionality
Select some values of control gains such that the system response has small overshoot
and zero offset.
(Estimated time: 1 hour)
Conclusions
At this point the following LOs have been met:
Design PID controllers with LabVIEW
Implement PID control algorithms for level control
Simulate PID control systems with Auto/Man switch mode
Use PtByPt Integral and Derivative functions
5
Follow-up Exercises
Make a LabVIEW simulation for the temperature control system (case study) [pp2.46-2.47].
Aim
Learning Outcomes
Design PID controllers with LabVIEW
Implement PID control algorithms for level control
Simulate PID control systems with Auto/Man switch mode
Use PtByPt Integral and Derivative functions
Use PID Control functions of the PID Control Toolkit
Use Formula Node and 4th-order RK Method
PID Control Algorithms Design and Simulation with LabVIEW
The PID control law is:
t
u = K p e + K i edt + K d
0
de
1
de
or u = K p e + edt + Td
dt
Ti 0
dt
Kp
100
; Ki =
; K d = K p Td
Kp
Ti
Transfer function:
K
U
1
U
= K p + i + K d s or
= K p 1 +
+ Td s
E
s
E
Ti s
PB =
PID Controller
SP
PV
Comparator
Subtract
Multiply
Kp
Sum
(Compound
Arithmetic)
P
Multiply
Integral uin
KI
Select
I
Multiply
uin
Derivative
Auto/Man
KD
OP
Auto
(Control signal)
4
To Actuator
Figure 1 Block diagram algorithm for PID control with Auto/Man switch mode
Notes: In LabVIEW PID Control Toolkit (Control Design and Simulation Module) there are
some PID control functions you can use.
The following shows the level control system with all components:
pc
Cross-sectional A
qi
Liquid supply
20-100 kPa
Pneumatic
I/P
supply 140 kPa
4-20mA
hm
LC
LT
Tank
PC 4-20mA
PID
h
qo
Resistance R
We need to match units for each component as shown in block diagram in Fig. 3.
Ps [kPa]
[V]
[mm]
Hsp
Km
[V]
H sp
+_
[V]
[kPa]
Pc
KIP
[kPa]
Kv
Qin
[mm]
H
G
A/M
PID
[V] < [mA] Hm
Km
Figure 4 PID control algorithm 1 using PtByPt Integral and Derivative functions (Signal
Processing)
2
Hands-on Exercise 4 PID control algorithm using Formula Node and RK method
Open the On-Off Level Control > Save as PIDLevelControlSysSim04.vi (we can start
from an earlier version of level system simulator)
Modify in a way that the Simulation Loop is replaced with a While Loop.
Refer to PID Control Algorithm 4:
Save the VI frequently
Run and test the VI functionality
Select some values of control gains such that the system response has small overshoot
and zero offset.
(Estimated time: 1 hour)
Conclusions
At this point the following LOs have been met:
Design PID controllers with LabVIEW
Implement PID control algorithms for level control
Simulate PID control systems with Auto/Man switch mode
Use PtByPt Integral and Derivative functions
5
Follow-up Exercises
Make a LabVIEW simulation for the temperature control system (case study) [pp2.46-2.47].
Aim
Learning Outcomes
Design PID controllers with LabVIEW
Implement PID control algorithms for level control
Simulate PID control systems with Auto/Man switch mode
Use PtByPt Integral and Derivative functions
Use PID Control functions of the PID Control Toolkit
Use Formula Node and 4th-order RK Method
PID Control Algorithms Design and Simulation with LabVIEW
The PID control law is:
t
u = K p e + K i edt + K d
0
de
1
de
or u = K p e + edt + Td
dt
Ti 0
dt
Kp
100
; Ki =
; K d = K p Td
Kp
Ti
Transfer function:
K
U
1
U
= K p + i + K d s or
= K p 1 +
+ Td s
E
s
E
Ti s
PB =
PID Controller
SP
PV
Comparator
Subtract
Multiply
Kp
Sum
(Compound
Arithmetic)
P
Multiply
Integral uin
KI
Select
I
Multiply
uin
Derivative
Auto/Man
KD
OP
Auto
(Control signal)
4
To Actuator
Figure 1 Block diagram algorithm for PID control with Auto/Man switch mode
Notes: In LabVIEW PID Control Toolkit (Control Design and Simulation Module) there are
some PID control functions you can use.
The following shows the level control system with all components:
pc
Cross-sectional A
qi
Liquid supply
20-100 kPa
Pneumatic
I/P
supply 140 kPa
4-20mA
hm
LC
LT
Tank
PC 4-20mA
PID
h
qo
Resistance R
We need to match units for each component as shown in block diagram in Fig. 3.
Ps [kPa]
[V]
[mm]
Hsp
Km
[V]
H sp
+_
[V]
[kPa]
Pc
KIP
[kPa]
Kv
Qin
[mm]
H
G
A/M
PID
[V] < [mA] Hm
Km
Figure 4 PID control algorithm 1 using PtByPt Integral and Derivative functions (Signal
Processing)
2
Hands-on Exercise 4 PID control algorithm using Formula Node and RK method
Open the On-Off Level Control > Save as PIDLevelControlSysSim04.vi (we can start
from an earlier version of level system simulator)
Modify in a way that the Simulation Loop is replaced with a While Loop.
Refer to PID Control Algorithm 4:
Save the VI frequently
Run and test the VI functionality
Select some values of control gains such that the system response has small overshoot
and zero offset.
(Estimated time: 1 hour)
Conclusions
At this point the following LOs have been met:
Design PID controllers with LabVIEW
Implement PID control algorithms for level control
Simulate PID control systems with Auto/Man switch mode
Use PtByPt Integral and Derivative functions
5
Follow-up Exercises
Make a LabVIEW simulation for the temperature control system (case study) [pp2.46-2.47].
Aim
Learning Outcomes
Design PID controllers with LabVIEW
Implement PID control algorithms for level control
Simulate PID control systems with Auto/Man switch mode
Use PtByPt Integral and Derivative functions
Use PID Control functions of the PID Control Toolkit
Use Formula Node and 4th-order RK Method
PID Control Algorithms Design and Simulation with LabVIEW
The PID control law is:
t
u = K p e + K i edt + K d
0
de
1
de
or u = K p e + edt + Td
dt
Ti 0
dt
Kp
100
; Ki =
; K d = K p Td
Kp
Ti
Transfer function:
K
U
1
U
= K p + i + K d s or
= K p 1 +
+ Td s
E
s
E
Ti s
PB =
PID Controller
SP
PV
Comparator
Subtract
Multiply
Kp
Sum
(Compound
Arithmetic)
P
Multiply
Integral uin
KI
Select
I
Multiply
uin
Derivative
Auto/Man
KD
OP
Auto
(Control signal)
4
To Actuator
Figure 1 Block diagram algorithm for PID control with Auto/Man switch mode
Notes: In LabVIEW PID Control Toolkit (Control Design and Simulation Module) there are
some PID control functions you can use.
The following shows the level control system with all components:
pc
Cross-sectional A
qi
Liquid supply
20-100 kPa
Pneumatic
I/P
supply 140 kPa
4-20mA
hm
LC
LT
Tank
PC 4-20mA
PID
h
qo
Resistance R
We need to match units for each component as shown in block diagram in Fig. 3.
Ps [kPa]
[V]
[mm]
Hsp
Km
[V]
H sp
+_
[V]
[kPa]
Pc
KIP
[kPa]
Kv
Qin
[mm]
H
G
A/M
PID
[V] < [mA] Hm
Km
Figure 4 PID control algorithm 1 using PtByPt Integral and Derivative functions (Signal
Processing)
2
Hands-on Exercise 4 PID control algorithm using Formula Node and RK method
Open the On-Off Level Control > Save as PIDLevelControlSysSim04.vi (we can start
from an earlier version of level system simulator)
Modify in a way that the Simulation Loop is replaced with a While Loop.
Refer to PID Control Algorithm 4:
Save the VI frequently
Run and test the VI functionality
Select some values of control gains such that the system response has small overshoot
and zero offset.
(Estimated time: 1 hour)
Conclusions
At this point the following LOs have been met:
Design PID controllers with LabVIEW
Implement PID control algorithms for level control
Simulate PID control systems with Auto/Man switch mode
Use PtByPt Integral and Derivative functions
5
Follow-up Exercises
Make a LabVIEW simulation for the temperature control system (case study) [pp2.46-2.47].
Aim
Learning Outcomes
Design PID controllers with LabVIEW
Implement PID control algorithms for level control
Simulate PID control systems with Auto/Man switch mode
Use PtByPt Integral and Derivative functions
Use PID Control functions of the PID Control Toolkit
Use Formula Node and 4th-order RK Method
PID Control Algorithms Design and Simulation with LabVIEW
The PID control law is:
t
u = K p e + K i edt + K d
0
de
1
de
or u = K p e + edt + Td
dt
Ti 0
dt
Kp
100
; Ki =
; K d = K p Td
Kp
Ti
Transfer function:
K
U
1
U
= K p + i + K d s or
= K p 1 +
+ Td s
E
s
E
Ti s
PB =
PID Controller
SP
PV
Comparator
Subtract
Multiply
Kp
Sum
(Compound
Arithmetic)
P
Multiply
Integral uin
KI
Select
I
Multiply
uin
Derivative
Auto/Man
KD
OP
Auto
(Control signal)
4
To Actuator
Figure 1 Block diagram algorithm for PID control with Auto/Man switch mode
Notes: In LabVIEW PID Control Toolkit (Control Design and Simulation Module) there are
some PID control functions you can use.
The following shows the level control system with all components:
pc
Cross-sectional A
qi
Liquid supply
20-100 kPa
Pneumatic
I/P
supply 140 kPa
4-20mA
hm
LC
LT
Tank
PC 4-20mA
PID
h
qo
Resistance R
We need to match units for each component as shown in block diagram in Fig. 3.
Ps [kPa]
[V]
[mm]
Hsp
Km
[V]
H sp
+_
[V]
[kPa]
Pc
KIP
[kPa]
Kv
Qin
[mm]
H
G
A/M
PID
[V] < [mA] Hm
Km
Figure 4 PID control algorithm 1 using PtByPt Integral and Derivative functions (Signal
Processing)
2
Hands-on Exercise 4 PID control algorithm using Formula Node and RK method
Open the On-Off Level Control > Save as PIDLevelControlSysSim04.vi (we can start
from an earlier version of level system simulator)
Modify in a way that the Simulation Loop is replaced with a While Loop.
Refer to PID Control Algorithm 4:
Save the VI frequently
Run and test the VI functionality
Select some values of control gains such that the system response has small overshoot
and zero offset.
(Estimated time: 1 hour)
Conclusions
At this point the following LOs have been met:
Design PID controllers with LabVIEW
Implement PID control algorithms for level control
Simulate PID control systems with Auto/Man switch mode
Use PtByPt Integral and Derivative functions
5
Follow-up Exercises
Make a LabVIEW simulation for the temperature control system (case study) [pp2.46-2.47].