Filter löschen
Filter löschen

Change transformer parameters form Guide app

2 Ansichten (letzte 30 Tage)
Timur Tajiyev
Timur Tajiyev am 10 Mai 2022
Beantwortet: David John am 23 Mai 2022
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??

Antworten (1)

David John
David John am 23 Mai 2022
The parameter value should be a string or character vector instead of a double or array of doubles.

Kategorien

Mehr zu Foundation and Custom Domains finden Sie in Help Center und File Exchange

Tags

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by