Objectives
- To develop MATLAB Simulink models for continuous and digital PI control systems.
- To simulate and compare the performance of continuous and discrete (digital) PI controllers for different sampling periods:
, , and seconds.
- To analyze the effect of sampling period on control performance and stability.
Problem Statement
In practical control systems, continuous-time controllers are often implemented digitally using sampling and zero-order hold (ZOH) techniques. The sampling period significantly affects control accuracy and stability — too slow a sampling rate degrades performance, while too fast a rate increases computational cost.
The process under consideration is represented by the following transfer function:
An output disturbance enters through the following transfer function:
You are required to implement and compare continuous and digital PI control systems for this process using MATLAB Simulink. The digital controller should use a zero-order hold and sampler, and the sampling period should be varied as described in the objectives.
Methodology
- Simulink Model Development
- Create a combined Simulink model that includes:
- The process
- The disturbance path
- A continuous PI controller
- A discrete PI controller implemented with Zero-Order Hold (ZOH) and Sampler blocks
- The process
- Configure the sampling period
for the digital controller as 0.5, 1.0, and 2.0 seconds.
- Use the same controller gains for both implementations.
- Create a combined Simulink model that includes:
- PI Controller Tuning
- Tune a continuous PI controller for the process using Control System Designer or IMC-based tuning.
- Record the controller gains (
, ).
- Verify the closed-loop response for reference tracking and disturbance rejection.
- Tune a continuous PI controller for the process using Control System Designer or IMC-based tuning.
- Digital PI Controller Conversion
- Discretize the continuous PI controller using the Tustin (bilinear) or backward Euler method.
- Implement the digital controller in Simulink using either:
- The Discrete PID Controller block, or
- The continuous PID block with sample time =
.
- The Discrete PID Controller block, or
- Ensure a zero-order hold (ZOH) is used between the digital controller and the process.
- Discretize the continuous PI controller using the Tustin (bilinear) or backward Euler method.
- Simulation Setup
- Simulate step changes in the setpoint and output disturbance for both the continuous and digital control loops.
- Run simulations for
, , and seconds.
- Observe and record key performance parameters: rise time, overshoot, settling time, and steady-state error.
- Simulate step changes in the setpoint and output disturbance for both the continuous and digital control loops.
- Performance Comparison
- Compare continuous and digital control performance using time-domain plots.
- Analyze the degradation in response with increasing sampling time.
- Discuss the trade-off between sampling speed, control accuracy, and computational cost.
- Compare continuous and digital control performance using time-domain plots.
Report Format
Your report (maximum 5 pages excluding submission details) should include:
- Submission Details: Include a brief table at the beginning of the report with the following information:
| Lab Title: | Lab 08 – Digital Control | Student Name | ID |
| Unit: | CHEN4011 | Student 1 | 12345678 |
| Date: | 12 October 2025 | Student 2 | 87654321 |
Objective & Problem Statement
Summarize the aim of digital control implementation and explain why sampling period selection is important. Include the process and disturbance transfer functions.
Methodology & Implementation
Describe the structure of the Simulink model and key components (ZOH, sampler, discrete PID). Explain how the PI controller was tuned and discretized. Provide screenshots of the Simulink model and show where the sampling period is defined.
Results
Present time-domain responses (setpoint tracking and disturbance rejection) for both continuous and digital controllers. Show results for
, , and . Include a table summarizing rise time, settling time, overshoot, and steady-state error for each case.Analysis and Discussion
Compare performance between continuous and discrete systems. Discuss how the sampling period influences controller accuracy and stability. Explain any performance degradation at larger
. Relate findings to real-world digital control implementation.Conclusion
Summarize key findings. Recommend an appropriate sampling period based on the trade-off between speed and accuracy. Reflect on the importance of sampling rate selection in digital control system design.
Assessment Rubric (20 Marks Total)
| No | Section | Marks | Evaluation basis |
|---|---|---|---|
| 1. | Objectives & Problem | 2 | Clarity of objectives; explanation of digital control context |
| 2. | Methodology and Implementation | 5 | Correct Simulink setup; explanation of ZOH/sampler; controller tuning process |
| 3. | Results | 5 | Quality and labeling of response plots; completeness of tabulated performance data |
| 4. | Analysis and Discussion | 6 | Comparison across sampling periods; insights on performance degradation |
| 5. | Conclusion and Presentation | 2 | Summary of findings; clarity, formatting, and presentation quality |
Citation
@online{utikar2023,
author = {Utikar, Ranjeet},
title = {Lab 08: {Digital} {Control}},
date = {2023-10-08},
url = {https://amc.smilelab.dev/content/labs/lab-08/},
langid = {en}
}