How to use PI controller for a particular discrete time step only within the sampling time?
3 views (last 30 days)
Show older comments
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.
0 Comments
Answers (1)
MULI
on 22 Feb 2024
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.
0 Comments
See Also
Categories
Find more on Waveform Generation in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!