replace Discrete PI Controller with anti-windup & reset for speed control with a matlab function

4 vues (au cours des 30 derniers jours)
Ciao, sto utilizzando il tool motor control blockset per controllare un motore brushless.
Negli esempi, il controllo, per esempio della velocità, viene fatto tramite un blocco "Discrete PI Controller with anti-windup & reset"
Mi è stato chiesto di sostituire questo blocco con una matlab function, per effettuare lo stesso tipo di controllo, dunque per farlo, l'idea che ho, è quella di riprodurre la funzione del blocco che verrà sostituito, all'interno del blocco matlab function.
Questa idea è corretta? Sapete consigliarmi come applicarla?

Réponses (1)

KrishnaKumar
KrishnaKumar le 2 Avr 2025
The Discrete PID Controller block is a versatile block that allows multiple options for the user and is recommended to be used for code generation/simulation. If you however want to replace the same with a matlab function, the same can be done by implementing the underlying equations on your own.

Produits


Version

R2023b

Community Treasure Hunt

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

Start Hunting!