powergui and ideal ac source issue

조회 수: 3 (최근 30일)
Timothy TenCate
Timothy TenCate 2019년 7월 19일
댓글: Timothy TenCate 2019년 7월 23일
I created a simscape electrical model using the Specialized Power Systems blocks and the simulation worked great. I saved my work and shut down my computer and next day I opened the model again and now the ideal voltage source is giving me a non sinusoidal output and the powergui block icon has the diconnected symbol in the corner(not sure about this). I tried to recreate the model and that did not work. Last night I installed 2019a and unistalled 2018b and now I still have the same issue and also I am getting a "out" file to my workspace from my "simout" block that I cannot use. Any help or guidance would be appreciated.

채택된 답변

Arvind Sathyanarayanan
Arvind Sathyanarayanan 2019년 7월 19일
Timothy,
Guessing based on your desciprition, it seems like the time step might not be large enough. If you're using a fixed step solver use a time step thats about 10 times the frequency of your sine wave. If you're using a variable step solver then reduce the max step size.
If you attach your model I or other people in this forum might be able to give you more concrete answer.
  댓글 수: 9
Arvind Sathyanarayanan
Arvind Sathyanarayanan 2019년 7월 23일
Thanks for the screenshot.
You have the Single simulation output option enabled in the configuration parameters. Disabling this should give you just the timerseries or whatever format you select in the To workspace block. See the image below
temp.png
Timothy TenCate
Timothy TenCate 2019년 7월 23일
That was it! Thank you very much for your help.
Tim

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Variable Initialization에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by