| Products & Services | Industries | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → SimPowerSystems |
| Contents | Index |
| Learn more about SimPowerSystems |
powerlib
The Powergui block allows you to choose one of the following methods to solve your circuit:
Continuous method, which uses a variable step Simulink solver
Ideal Switching continuous method
Discretization of the electrical system for a solution at fixed time steps
Phasor solution method
The Powergui block is necessary for simulation of any Simulink model containing SimPowerSystems blocks. It is used to store the equivalent Simulink circuit that represents the state-space equations of the model.
You must follow these rules when using this block in a model:
Place the Powergui block at the top level of diagram for optimal performance. However, you can place it anywhere inside subsystems for your convenience; its functionality will not be affected.
You can have a maximum of one Powergui block per model
You must name the block powergui
The Powergui block also gives you access to various graphical user interface (GUI) tools and functions for the steady-state analysis of SimPowerSystems models, the analysis of simulation results, and for the design of advanced block parameters.

To specify the simulation type, parameters, and preferences, select Configure parameters in the Powergui dialog. This opens another dialog box with the Powergui block parameters. This dialog box contains two tabs, Solver and Preferences. The configuration of the Solver tab depends on the option selected from the Simulation type drop-down list.




Select Continuous to perform a continuous solution of the model.
Select Discrete to perform a discretization of the model. The sample time is specified by the Sample time parameter.
Select Phasor to perform phasor simulation of the model, at the frequency specified by the Phasor frequency parameter.
If selected, the switches and power electronic blocks are modeled by an alternative method allowing ideal or quazi-ideal switches. For more information, see Using the Ideal Switching Device Method. This parameter is visible only when the Simulation type parameter is set to Continuous.
If selected, the snubber devices of the power electronic and breaker blocks in your model are disabled and not modeled. This parameter is visible only if Enable use of ideal switching devices is selected.
If selected, the internal resistance Ron of switches and power electronic devices is disabled and forced to zero ohms. This parameter is visible only if Enable use of ideal switching devices is selected.
If selected, the internal forward voltage Vf of power electronic devices is disabled and forced to zero volts. This parameter is visible only if Enable use of ideal switching devices is selected.
If selected, differential equations of the model are displayed in the command window when the simulation starts. This parameter is visible only if Enable use of ideal switching devices is selected. For more information, see Using the Ideal Switching Device Method.
Specify the sample time used to discretize the electrical circuit. This parameter is visible only when the Simulation type parameter is set to Discrete.
The Sample time parameter must be set to a value greater than 0. The icon displays the value of the sample time.
Specify the frequency used by the software to perform the phasor simulation of the model. This parameter is visible only when the Simulation type parameter is set to Phasor.
If selected, the command line echo messages are enabled during the analysis and simulation of the model.
If selected, TLS state-space S-function (sfun_spssw_discc.tlc) will be used in Accelerator mode and for code generation.
Clear this box if you notice a slowdown in performance when using Accelerator mode, compared to previous releases. This slowdown is observed if you have the LCC compiler installed as the default compiler for building external interface (mex).
If blocks is selected, initial state values defined in blocks are used for the simulation.
If steady is selected, force all initial electrical state values to steady-state values.
If zero is selected, force all initial electrical state values to zero.
If yes is selected, the Powergui block detects SimPowerSystems blocks that have a disabled link at the simulation start and restores the link automatically.
If warning is selected, the Powergui block detects SimPowerSystems blocks that have a disabled link at the simulation start and displays a warning.
If no is selected, SimPowerSystems blocks with disabled links will not be detected and relinked.
Open the Steady-State Voltages and Currents Tool dialog box that displays the steady-state voltages and currents of the model. For more information, see the power_steadystate reference page.
Open the Initial States Setting Tool dialog box that allows you to display and modify initial capacitor voltages and inductor currents of the model. For more information, see the power_initstates reference page.
Open the Machine Load Flow Tool dialog box to perform load flow and initialize three-phase networks containing three-phase machines, so that the simulation starts in steady state. For more information, see the power_loadflow reference page.
Open a window to generate the state-space model of your system (if you have Control System Toolbox software installed) and automatically open the LTI Viewer interface for time and frequency domain responses. For more information, see the power_ltiview reference page.
Open the Impedance vs Frequency Measurement Tool dialog box to display the impedance versus frequency defined by the Impedance Measurement blocks. For more information, see the power_zmeter reference page.
Open the FFT Analysis Tool dialog box to perform Fourier analysis of signals stored in a Structure with Time format. For more information, see the power_fftscope reference page.
An example of using the FFT Analysis tool is described in Performing Harmonic Analysis Using the FFT Tool.
Open the Generate Report Tool dialog box that allow you to generate a report of steady state variables, initial states, and machine load flow for a model. For more information, see the power_report reference page.
Open a window to design a hysteresis characteristic for the saturable core of the Saturable Transformer block and the Three-Phase Transformer blocks (two- and three-windings). For more information, see the power_hysteresis reference page.
Open a window to compute RLC parameters of overhead transmission line from its conductor characteristics and tower geometry. For more information, see the power_lineparam reference page.
power_fftscope, power_hysteresis, power_initstates, power_lineparam, power_loadflow, power_ltiview, power_report, power_steadystate, power_zmeter
![]() | PM Synchronous Motor Drive | PWM Generator | ![]() |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |