SimPowerSystems    
powerinit

Set the initial states values of a model built with Power System Blockset

Syntax

Description

powerinit('sys','look') displays the current initial states for the specified system.

powerinit('sys','reset') resets to zero the initial states of the specified system.

powerinit('sys','steady') sets the initial states of the specified system in order to start the simulation in steady state.

powerinit('sys','set',X0) sets the initial states values of the model sys to the specified vector X0. The ordering of the variables states is given by the powerinit('sys','look') command.

powerinit('sys','setb','StateVariableName',Value) sets the initial state variable specified in 'StateVariableName' to Value. The names of the variables states are given by the powerinit('sys','look') command.

Example

The following commands reset to zero the initial states values of the psbfilter.mdl demo.

This command returns the names of the states and their current values.

See Also

power2sys, Powergui


 power2sys