Hello!(adsbygoogle = window.adsbygoogle || []).push({});

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 Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# MATLAB: How to add initial states to a circuit simulation

Loading...

Similar Threads - MATLAB initial states | Date |
---|---|

How to program this in Matlab | Feb 28, 2018 |

Matlab Making a short test for self-adjointness | Feb 23, 2018 |

Matlab errors in initialization | Mar 23, 2012 |

How to build a non-uniform initial temperature with Matlab and COMSOL-thanks | Nov 16, 2011 |

**Physics Forums - The Fusion of Science and Community**