Is it possible with Matlab/Simulink to simulate the power consumption of a system in active mode, sleep mode and hybernate mode, related to the operating frequency of the system clock? I have a wireless sensor, built with a microcontroller, some sensors (temperature, light, and so on), a wireless transceiver. For every component I would build a block, for simulating the power consumption in different operating modes (active, idle, sleep, hybernate). The current and voltage values are known, by means of tables or equation. The simulation timing considers a timing for putting the system in sleep, wake up the sensors, the microcontroller, the transceiver, send and receive data, and go back in sleep again. I can parameterize all the time durations. In this simulation timing I must see the Power consumption rising in the active phase and falling in the sleep phase. Is it possible to do with Simulink a component (black box), in which I can set the state in a given time(active, sleep, hybernate, ecc.), the voltage Vdd and the frequency of the clk, Fclk, in order to simulate the different power consumptions?