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.

 채택된 답변

Kaustubha Govind
Kaustubha Govind 2012년 5월 2일
It looks like "ki" is not the name of a valid parameter on that block mask. To see the list of parameter names, type the following command and look at the names of the fields of the structure returned:
>> get_param('powersystem/svc', 'DialogParameters')

댓글 수: 1

Thank you for your answer.I wrote this command.And this information obtained:
ans =
ShowParameters: [1x1 struct]
Seq1_Only: [1x1 struct]
SystemNominal: [1x1 struct]
Pbase: [1x1 struct]
Qnom: [1x1 struct]
Td: [1x1 struct]
mode: [1x1 struct]
ExternalVref: [1x1 struct]
Vref: [1x1 struct]
Xs: [1x1 struct]
Kp_Ki: [1x1 struct]
Bref: [1x1 struct]
Ki available in list. please tell me what is the solution. thanks.

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

추가 답변 (1개)

morteza mohammadi
morteza mohammadi 2012년 5월 3일

0 개 추천

Thank you for your answer.I wrote this command.And this information obtained: ans = ShowParameters: [1x1 struct] Seq1_Only: [1x1 struct] SystemNominal: [1x1 struct] Pbase: [1x1 struct] Qnom: [1x1 struct] Td: [1x1 struct] mode: [1x1 struct] ExternalVref: [1x1 struct] Vref: [1x1 struct] Xs: [1x1 struct] Kp_Ki: [1x1 struct] Bref: [1x1 struct]
Ki available in list. please tell me what is the solution. thanks.

댓글 수: 6

It could be
--------------------------------------
set_param('powersystem/svc','Kp_Ki','10');
--------------------------------------
There is no parameter with name "Ki" in the list.
Also your original post has 'ki' as lower case, so be sure you use the exact format that TAB provided or that ShowParameters returns.
When I write this command (set_param('powersystem/svc','Kp_Ki',10))
This error message appears :
Invalid setting in block (mask) 'svc' for parameter 'Kp_Ki'
What is the problem? please.
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.
thanks. it works. but when i use genetic algorithm for tuning parameter(kp_ki). in set_aram command, parameter(kp_ki) does not change During the optimization process.
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!

Translated by