Connecting PID Controller with matlab

I want to tune the PID controller. For that how can i connect my simulink model to .m file?
Thank you

3 Kommentare

M
M am 13 Feb. 2019
Why do you need to connect your simulink model to a .m file to tune the PID controller ?
Mohit Bhatia
Mohit Bhatia am 14 Feb. 2019
I want to tune the PI parameters using neural network. So I want to get values of Kp, Ki after every cycle.
Thank you
Patel Mounika
Patel Mounika am 20 Feb. 2019
So does your .m file contain the PI parameters or the neural network?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Baraa Samsam
Baraa Samsam am 28 Mai 2020

1 Stimme

use this C(:,:,i) = pid(Kp,Ki,Kd);

Gefragt:

am 13 Feb. 2019

Beantwortet:

am 28 Mai 2020

Community Treasure Hunt

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

Start Hunting!

Translated by