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.

 Réponse acceptée

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 commentaire

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.

Connectez-vous pour commenter.

Plus de réponses (1)

morteza mohammadi
morteza mohammadi le 3 Mai 2012

0 votes

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 commentaires

TAB
TAB le 3 Mai 2012
It could be
--------------------------------------
set_param('powersystem/svc','Kp_Ki','10');
--------------------------------------
There is no parameter with name "Ki" in the list.
K E
K E le 3 Mai 2012
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?

Connectez-vous pour commenter.

Catégories

En savoir plus sur App Building dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by