SimPowerSystems | ![]() ![]() |
Interfacing the Electrical Circuit with Simulink
The Voltage Measurement block acts as an interface between the Power System Blockset blocks and the Simulink blocks. For the system shown above, the link is done from the electrical system to the Simulink system. The Voltage Measurement blocks converts the measured voltages into Simulink signals.
Note that the Current Measurement block from the Measurements library of powerlib can also be used to convert any measured current into a Simulink signal.
The link from Simulink blocks to the electrical system is also possible. For example, you can use the Controlled Voltage Source block to inject a voltage in an electrical circuit. The voltage is then controlled by a Simulink signal.
![]() | Building the Electrical Circuit with powerlib Library | Simulating Your Circuit | ![]() |