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.

 Respuesta aceptada

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 comentario

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.

Iniciar sesión para comentar.

Más respuestas (1)

morteza mohammadi
morteza mohammadi el 3 de Mayo de 2012
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 comentarios

TAB
TAB el 3 de Mayo de 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 el 3 de Mayo de 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?

Iniciar sesión para comentar.

Categorías

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by