Can't set capacitor initial voltage of cap because of powergui error

15 ビュー (過去 30 日間)
Charley Xu
Charley Xu 2019 年 8 月 12 日
コメント済み: Charanraj 2019 年 12 月 20 日
Hi, when I click on the powergui block, and I press intitial states, I get this error:
"Error evaluating 'MaskDialog' callback of PSB option menu block block (mask) 'randomModel/powergui'. Callback string is 'close_system(gcb) power_initstates(bdroot(gcb),gcb)'
Dot indexing is not supportd for variables of this type."
How do I fix this?
  1 件のコメント
Charanraj
Charanraj 2019 年 11 月 28 日
Did u get answer to this ? I too have this problem. thanks

サインインしてコメントする。

回答 (2 件)

Shashwat Bajpai
Shashwat Bajpai 2019 年 12 月 10 日
Hey,
There is a similar question for this error on the following link:
I would suggest following the steps mentioned in the answer. If the problem still persists please share the model so that we can have a detailed understanding of the problem.
Hope this helps!

Charanraj
Charanraj 2019 年 12 月 17 日
Hi Shashwat,
Thanks for your comment. I have tried the steps in the shared link. But it did not work. So, I have attached my model and also the screenshot of the model as picture for consideration. As you can see, the circuit is a simple integrator (with no reset switch) that has an input resistor and an output resistor. I just apply 2.7 - 2.4 = 0.3 read pulse via the input resistor and I bias the positive terminal of the opamp with 2.4 V. I am using variable step - discrete (no continous state) in the setting of the simulation with max step size as 1e-6 s. I use backward euler and step time of 1e-6 s for the solver. I can run simulations smoothly as desired (both in accelerator and normal modes). But I want to set initial capacitor voltage to zero and also other feasible parameters later. Unfortunately, the initial states tool option in power gui shows error as mentioned in the screenshot.
Can I know if there's is some wrong setting I keep in my model and reason for the error. Thanks in advance.Capture.JPG
  2 件のコメント
Shashwat Bajpai
Shashwat Bajpai 2019 年 12 月 19 日
Hey Charanraj,
I suggest opening a new MATLAB Answers question for your issue so that it is visible to a wider audience.
Charanraj
Charanraj 2019 年 12 月 20 日
Hi Shashwat,
thanks

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeGet Started with Specialized Power Systems についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by