I am getting wrong output voltage in ideal transformer , how can I fix this ?
4 views (last 30 days)
Show older comments
I am trying to model ideal transformer in using Simscape Electrical, This is my Simscape model,
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/368176/image.png)
I am giving input signal of
, Primary load is
and secondary load is
.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/368179/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/368182/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/368185/image.png)
Turns ratio : P/S = 50/200
And solving with auto(ode23t)
When I try to plot in Scope I am getting this type of output :
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/368188/image.png)
I am sure that this is not the expected output, Am I missing something ?
0 Comments
Accepted Answer
David John
on 7 Oct 2020
Please try changing the "Max step size" in the "Model Settings" to something smaller so that it resolves your sine wave better. If you are using "auto" for Max step size, it can easily choose a step that is far too big when you are simulating many cycles.
2 Comments
David John
on 7 Oct 2020
Edited: David John
on 7 Oct 2020
Glad to hear that it worked. For your question, have a look at https://www.mathworks.com/help/simulink/gui/max-step-size.html which explains the auto choice for Max step size. Sine and Signal Generator do indeed employ a different heuristic for Max step size.
More Answers (0)
See Also
Categories
Find more on Electrical Sensors in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!