How to use PI controller for a particular discrete time step only within the sampling time?

2 次查看(过去 30 天)
Hi, I am a simulink user.For eg i took sampling time as 1 microsec.All i want is to use PI controller only for 0.3microsec (ie remaining 0.7microsec it should halt ) and output of the PI controller i want to use for another purpose which takes the remaining sampling time ie 0.7microsec. And i want to repeat this procedure every 1 microsec.

回答(1 个)

MULI
MULI 2024-2-22
Hi Ahammad,
Here I am providing one of the possible approaches which provides the desired result.
Set the pulse width of a pulse generator to 30% which generates the output such that it will be high upto 0.3 microsec and zero for remaining time.
Multiply the pulse generator output with output of PI Controller. A NOT gate can be used to get the output for remaining time.
Here I am attaching the Simulink layout and its output.

类别

Help CenterFile Exchange 中查找有关 Dynamic System Models 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by