MATLAB: How to add initial states to a circuit simulation

Click For Summary
SUMMARY

The discussion centers on issues encountered while using the SimPowerSystems library in MATLAB R2012b for circuit simulations. Users reported errors when attempting to set initial current or voltage values at the RLC branch block, with the simulation ignoring these values. Additionally, the powergui solver's "initial settings" menu fails to recognize state variables, leading to warnings and simulation failures. The recommended solution is to contact MathWorks technical support for assistance.

PREREQUISITES
  • Familiarity with MATLAB R2012b and its SimPowerSystems library
  • Understanding of circuit simulation concepts, particularly RLC circuits
  • Knowledge of the powergui solver and its functionalities
  • Experience with interpreting MATLAB warning messages and debugging
NEXT STEPS
  • Research MATLAB SimPowerSystems documentation for initial state configuration
  • Explore troubleshooting techniques for powergui solver issues
  • Learn about MATLAB's technical support resources and ticket submission process
  • Investigate community forums for similar issues and potential workarounds
USEFUL FOR

This discussion is beneficial for electrical engineers, MATLAB users, and circuit simulation specialists who are troubleshooting initial state configuration issues in SimPowerSystems.

franciobr
Messages
13
Reaction score
0
Hello!

I am having trouble using the SimPowerSystems library from simulink to simulate circuits (with the powergui solver).
On all the circuits I have simulated so far either of the following happens:

- Adding the initial current/voltage directly at the RLC branch block culminates into an error message when I run the simulation that states that the initial value is being ignored.

- The powergui: "initial settings" menu either says that "There is no state variable at this model" or gets stuck at "Calculating stating variables" and displays a long warning message at the command window. The warning message is below.

It should be elementary to add initial states since there are apparently so many convenient ways of doing it (either directly at the block or at the powergui solver) but unfortunately none of them work! Please, any help would be much appreciated.

Thank you in advance!

Warning message shown:

> In C:\Program Files\MATLAB\R2012b\toolbox\physmod\powersys\powersys\private\power_init_pr.p>power_init_pr at 125
In power_init at 68
In C:\Program Files\MATLAB\R2012b\toolbox\physmod\powersys\powersys\private\power_initstates_pr.p>EvaluateTheModel at 636
In C:\Program Files\MATLAB\R2012b\toolbox\physmod\powersys\powersys\private\power_initstates_pr.p>power_initstates_pr at 35
In power_initstates at 24
In C:\Program Files\MATLAB\R2012b\toolbox\physmod\powersys\powersys\powergui.p>InitialStatesSettingButton_Callback at 132
In C:\Program Files\MATLAB\R2012b\toolbox\physmod\powersys\powersys\powergui.p>powergui at 87
 
Physics news on Phys.org
Good idea, just submitted the request. Anyway, if anybody has the workaround for this problem any help is appreciated.
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
9K
  • · Replies 11 ·
Replies
11
Views
4K
Replies
1
Views
5K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
1
Views
12K
  • · Replies 5 ·
Replies
5
Views
6K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
7
Views
2K