pid controller (m-file ) with input data and output data

조회 수: 6 (최근 30일)
mohammed hussein
mohammed hussein 2022년 3월 5일
댓글: Star Strider 2022년 3월 5일
Hi
I have data input should inter to PID controller without feedback. only data into PID and get the results data out. I would like to make code in m-file represent this way (data input to PID and get out data)
thank you very much for helping

채택된 답변

Star Strider
Star Strider 2022년 3월 5일
See if the lsim function will do what you want.
  댓글 수: 2
mohammed hussein
mohammed hussein 2022년 3월 5일
Thank you for your answer, my question in simple way is if I have input data for example (A=5) input to PID (P=0.2, I=180) how can I get the output data by using MATLAB m-file.
Star Strider
Star Strider 2022년 3월 5일
I have no idea what any of that refers to.
See the documentation I linked to in order to understand how to use lsim to get output from a specific input. Create a time vector and a corresponding input vector (or array) and then use lsim to get the system output from those inputs.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 PID Controller Tuning에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by