Enable energy accounting
R2026bOption to enable energy accounting
Since R2026b
Model Configuration Pane: Simscape
Description
Energy accounting functionality allows you to get the energy and power usage data for specific blocks in the model. Energy accounting is based on post-processing logged simulation data and requires logging additional variables and intermediates, which slows down simulation. Therefore, to avoid negative impact on simulation performance when energy accounting is not important, this parameter is off by default.
If you want to analyze energy and power usage, enable this parameter and then simulate the model with Simscape™ data logging turned on, either for the whole model or for specific blocks of interest.
Settings
- On
Enable calculating energy and power usage in the model. This option slows down model simulation.
- Off
Disable energy and power calculations in the model.
Recommended Settings
| Application | Setting |
|---|---|
| Debugging | On |
| Traceability | No Impact |
| Efficiency | Off |
| Safety precaution | No Impact |
Programmatic Use
Parameter:
SimscapeUseEnergyAccounting |
| Type: character vector | string scalar |
Value:
"on" | "off" |
Default:
"off" |
Version History
Introduced in R2026b