Clear Filters
Clear Filters

Connecting PID Controller with matlab

2 views (last 30 days)
Mohit Bhatia
Mohit Bhatia on 13 Feb 2019
Answered: Baraa Samsam on 28 May 2020
I want to tune the PID controller. For that how can i connect my simulink model to .m file?
Thank you
  3 Comments
Mohit Bhatia
Mohit Bhatia on 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 on 20 Feb 2019
So does your .m file contain the PI parameters or the neural network?

Sign in to comment.

Answers (1)

Baraa Samsam
Baraa Samsam on 28 May 2020
use this C(:,:,i) = pid(Kp,Ki,Kd);

Community Treasure Hunt

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

Start Hunting!