i have a problem with set_param command. please help me
Mostrar comentarios más antiguos
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
Más respuestas (1)
morteza mohammadi
el 3 de Mayo de 2012
0 votos
6 comentarios
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
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.
morteza mohammadi
el 4 de Mayo de 2012
Kaustubha Govind
el 4 de Mayo de 2012
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
el 5 de Mayo de 2012
Kaustubha Govind
el 7 de Mayo de 2012
Is there an error?
Categorías
Más información sobre App Building en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!