I would like to ask you for idea or how to define (using Simulink blocks) an electrical appliance with their own power, and energy consumption in time. This block should be possible to switch on and off.
If anybody knows an example of something similar, please leave a link.
At the moment I have defined it with R block, then I calculate its power (kW) and multiply it by time in hours, but this is not good way.