Power System Blockset | ![]() ![]() |
Creating Your Own Library of Models
The Power System Blockset provides a variety of basic building blocks to build more complex electric blocks. Using the masking feature of Simulink, you can assemble several elementary blocks of powerlib into a subsystem, build your own parameter dialog box, create the desired block icon, and place this new block in your personal library.
In Chapter 2, "Tutorial," we explained how to build a nonlinear model using a Voltage Measurement block and a Controlled Current Source block. The proposed examples (a nonlinear inductance and a nonlinear resistance) were relatively simple. Using the same principle, you can develop much more complex models using several controlled current sources, or even controlled voltage sources. Refer to Session 7 of the Tutorial chapter.
The powerlib_extras library provided with the blockset gives examples of masked blocks that have been used to create a three-phase library. Open this library and note how the masked blocks have been created.
You can even make your block icons change dynamically according to the parameter values. For example, open the dialog box of the 3-phase RLC Parallel Load block provided in the Three-Phase library of powerlib_extras and notice how its icon changes when the active and reactive powers are successively set to zero.
![]() | Modifying the Nonlinear Models of the Powerlib_models Library | Changing Your Circuit Parameters | ![]() |