Borrar filtros
Borrar filtros

how to put error value in PID?

3 visualizaciones (últimos 30 días)
Eran Shiffman
Eran Shiffman el 1 de Ag. de 2017
Respondida: Deepak Gala el 4 de Ag. de 2017
Hey, I'm new at matlab and I don't understand how do I put the input "error" value. I need to put a vector and get output of vector. how can I do that?
  2 comentarios
José-Luis
José-Luis el 1 de Ag. de 2017
This is not clear to me.
What are you trying to achieve? Please post a minimum working example illustrating your problem.
Junaid Qadir
Junaid Qadir el 3 de Ag. de 2017
first, define a variable and then put integers.

Iniciar sesión para comentar.

Respuestas (1)

Deepak Gala
Deepak Gala el 4 de Ag. de 2017
I guess you are talking about the Simulink model in Matlab. There is a 'PID' block in Simulink library. I have attached a simple closed-loop system with PID controller. You can change the gains Kp, Ki and Kd by double clicking the PID block. I have made the settings for the Scope to save the output in a variable 'Output' in the workspace.
I think you need to read more about closed-loop systems. Following links will help you understanding basics.
https://en.wikipedia.org/wiki/Control_theory https://en.wikipedia.org/wiki/PID_controller
Good luck!

Community Treasure Hunt

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

Start Hunting!

Translated by