Академический Документы
Профессиональный Документы
Культура Документы
Aim
• To design and simulate an On-Off control system
• To use simulation as a diagnostic tool to improve control system performance
Learning Outcomes
• Simulate a Level Transmitter, an I/P converter and a Pneumatic Control Valve
• Program the On-Off control algorithm with an Auto/Man model switch
• Enhance Simulator
• Create a project and build applications (executable files)
Block diagram algorithm for On/Off Control with Auto/Man mode switch:
ON/OFF Auto/Man
The following shows the level control system with all components:
pc
qi Cross-sectional A
Liquid supply
20-100 kPa
Pneumatic hm
I/P LC LT Tank
supply 140 kPa
4-20mA PC 4-20mA
h
qo
Resistance R
Figure 2 Liquid level control system
1
Ps [kPa]
[mm] [V] [V] [V] > [mA] [kPa] [kPa] [mm]
Hsp H sp E U Pc Qin H
Km +_ C KIP Kv G
A/M
[V] On/Off
Open “TankLevelSysSim04.vi” (or an appropriate file name) you created at the end of
Tutorial 5a and save as “OnOffTankLevelSysSim01.vi”
3. Add a Pneumatic Control Valve (input: 20-100 kPa, output: qin: 0-0.0071 m3/s > m3/s)
2
Figure 6 Pneumatic control valve
Save the VI.
5. Add an On-Off Controller (SP [mm] > [V], comparator, On-Off controller)
The resulting simulation program looks like... (see Fig. 9 and Fig. 10).
3
Figure 9 Simulation program – Block Diagram Windows
4
Hands-on Exercise 2 Create a Project
Close the VI. Open an Empty Project. Save as “MyFirstProject01”. The project looks like:
However we are not going to create a new VI, we add a VI (On-Off Level Control System
Simulator) we have created.
5
Figure 12 Add a file into a project
Information
Source File > Build
6
Figure 14 Build status
When the Build Application is done, test the EXE file that has been created. If it works
properly, the build application is successful. This EXE file requires LabVIEW Run-Time
Engine 8.6 that can be downloaded from the NI website when it is run in a computer without
LabVIEW:
http://joule.ni.com/nidu/cds/view/p/id/1101/lang/en
Conclusions
Follow-up Exercise
Create a new project for simulation of the drying oven system in Example 15 (Lecture Notes)
and build an executable file for the dying oven system.