MATLAB: Extracting Power from circuit [Simulink]

simpowersystems

As for introduction,I had a simple circuit where it consists of a voltage supply, couple of resistors, inductors and capacitors either in series or in parallel. How it is possible to get the "Power Input and the Output" of the circuit? Basically Power = [Voltage x Current] I'd used the Current measurement as well as the voltage measurement blocks, but that it just for measuring. I need the power signal being extracted. Any possible answers? Thanks in advance.

Best Answer

I do not understand why the Current and Voltage Measurement blocks will not allow you to accomplish what you need. If you measure the current flowing through a branch, and the voltage across the same branch, you can take the two resulting signals (in the Simulink domain) and multiply one by the other to compute electrical power. You can then attach the output of the multiplier to a Simulink scope and see how the power varies with time.
Does that work?
HTH.
Rick