필터 지우기
필터 지우기

Change transformer parameters form Guide app

조회 수: 2 (최근 30일)
Timur Tajiyev
Timur Tajiyev 2022년 5월 10일
답변: David John 2022년 5월 23일
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??

답변 (1개)

David John
David John 2022년 5월 23일
The parameter value should be a string or character vector instead of a double or array of doubles.

카테고리

Help CenterFile Exchange에서 Foundation and Custom Domains에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by