Where are the PID blocks in the Block-Specific Parameters in order to change parameters of these blocks in a script?

조회 수: 1 (최근 30일)
I am using the PID Controller (2DOF) in a Simulink model. By looking at the Block-Specific Parameters of Simulink, I found that the PID blocks don't appear. I need it because I have to modify the parameters of the PID in a script.
Any idea before programming manually the PID algorithm by using basics blocks?

답변 (1개)

Suze Zhang
Suze Zhang 2017년 9월 20일
Hi Enrique,
To view the block specific parameters for PID Controller (2DOF) block, you can select this block in your Simulink model, then use the following command to get a list of block dialog parameters for this block:
>> get_param(gcb, 'DialogParameters')
  댓글 수: 1
Enrique Pinto
Enrique Pinto 2017년 9월 21일
Thank you Suze!
I executed:
P = get_param('miModel/PID Controller (2DOF)','P')
I = get_param('miModel/PID Controller (2DOF)','I')
and it works!

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

카테고리

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