how to update the value of a transfer function block during run time of simulation

조회 수: 7 (최근 30일)
Raghu
Raghu 2013년 11월 1일
편집: Jariyah 2025년 9월 1일 5:04
Example MY transfer function block contains (-kps-ki)/s. Here i need to update the value of kp and ki based on the input(U) to this block. (or) if U < x (some value) need to set kp=0;ki=y else need to set kp=z;ki=0;
Thanks in advance, Raghu.

답변 (2개)

Jonathan LeSage
Jonathan LeSage 2013년 11월 4일
Here is a link to some documentation that details several different methods in Simulink to achieve what you're looking for:
The most straightforward method is likely option (3). You can construct the transfer function models via fundamental Simulink blocks with your 'Kp' and 'Ki' values as inputs. You can changes these values according to the necessary logic that you describe above.
Hope this helps to get you started!

Divyaansh Singh
Divyaansh Singh 2019년 12월 20일
My transfer function block is not updating whe i try to change the values , it give sproper result whatsoever . but i am not able to see changes in the block . All it does is converts to num(s)/den(s).Dobut.JPG
  댓글 수: 1
Jariyah
Jariyah 2025년 9월 1일 5:03
편집: Jariyah 2025년 9월 1일 5:04
Expand the box so that the whole equation can be displayed

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

카테고리

Help CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by