Change transformer parameters form Guide app
2 次查看(过去 30 天)
显示 更早的评论
Hello all,
please help me out,
I want to set parameters for simscape transformer block from guide app, following code i use for callback of sim&plot push-button:
a=get(handles.v_1, 'string')
v1=str2double(strsplit(a,','))
set_param('rt/Transformer','Winding1', v1);% input in app comma separated line 5000, 0.005625, 0.021786
sim('rt');%simulation of "rt" model
I receive the error message:
Invalid setting in Three-Phase Transformer (Two Windings) block (mask) 'Transformer' for parameter 'Winding1'
? how to set windings parameters from guide app??
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/993690/image.png)
0 个评论
回答(1 个)
David John
2022-5-23
The parameter value should be a string or character vector instead of a double or array of doubles.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Foundation and Custom Domains 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!