Zero-Order Hold block transfer function

47 views (last 30 days)
Violet Jiang
Violet Jiang on 19 Aug 2022
Answered: Yash on 1 Sep 2023
I am trying to build my plant model which includes a ZOH block. When I realized that my model's transfer function did not change with or without the ZOH block, I went ahead and built a simple closed loop with a P-controller (gain of 1) and the ZOH. The resulting bode plot, unsurprisingly, was at 0dB the entire time regardless of the sample time I use.
I was expecting some filtering action with the block. Am I doing something wrong in Simulink, or is the filtering from the ZOH not modelled.
Thanks in advance!

Answers (1)

Yash
Yash on 1 Sep 2023
Hi Violet,
In Simulink, the Zero-Order Hold (ZOH) block is used to model the discrete-time representation of a continuous-time system. The ZOH block holds the input value constant for the duration of the sample time and then updates it at the next sample time.
However, the ZOH block itself does not introduce any filtering action or affect the frequency response of the system. It simply represents the discrete-time sampling process.
If you are expecting some filtering action from the ZOH block, you may need to include additional filtering components in your model. The ZOH block is typically followed by a discrete-time filter, such as a low-pass filter, to achieve the desired filtering behaviour.
In your current setup with a P-controller (gain of 1) and the ZOH block, the resulting Bode plot being at 0 dB regardless of the sample time is an expected behaviour. The P-controller has a constant gain, and the ZOH block does not introduce any additional filtering. Therefore, the frequency response remains flat at 0 dB.
To introduce filtering action, you can modify your model by adding appropriate filter components after the ZOH block. This can include discrete-time filters, such as low-pass filters or other types of filters, depending on the desired frequency response and system behaviour.

Products


Release

R2021b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!