i have a problem with set_param command. please help me
이전 댓글 표시
hi. i simulate a power system with the Static var compensator(svc). now i want to change a parameter (ki) into svc block from mfile with set_param command.command is:
set_param("powersystem/svc",'ki',10)
But this error is given:
svc (Phasor Type) block (mask) does not have a parameter named 'ki'.
please help me.
채택된 답변
추가 답변 (1개)
morteza mohammadi
2012년 5월 3일
0 개 추천
댓글 수: 6
TAB
2012년 5월 3일
It could be
--------------------------------------
set_param('powersystem/svc','Kp_Ki','10');
--------------------------------------
There is no parameter with name "Ki" in the list.
K E
2012년 5월 3일
Also your original post has 'ki' as lower case, so be sure you use the exact format that TAB provided or that ShowParameters returns.
morteza mohammadi
2012년 5월 4일
Kaustubha Govind
2012년 5월 4일
It needs to be set_param('powersystem/svc','Kp_Ki','10') - exactly how TAB suggested. set_param takes arguments passed in as string, which are then evaluated as a number.
morteza mohammadi
2012년 5월 5일
Kaustubha Govind
2012년 5월 7일
Is there an error?
카테고리
도움말 센터 및 File Exchange에서 App Building에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!