| Output | Data Type | Range | Description |
|---|---|---|---|
| CPU_Load | single (float) | 0.0 to 100.0 | Percentage of CPU time used by scheduled tasks |
The output is a ready-to-use percentage (0-100%). No scaling is required:
The block internally measures idle time ratio and converts it to percentage.
// CPU load calculation:
CPU_Load = (1 - (IdleTime / TotalTime)) × 100%
Where:
IdleTime = Time spent in idle task
TotalTime = Total elapsed time
Measurement window: Configurable averaging period
| CPU Load Range | Status | Recommendation |
|---|---|---|
| 0-60% | ✓ Healthy | Good margin for additional features |
| 60-80% | ⚠ Moderate | Monitor closely, optimize if growing |
| 80-95% | ⚠ High | Optimize code, reduce sample rates |
| >95% | ❌ Critical | System unstable, immediate action required |
% Monitor CPU load and trigger optimization
CPU_Load → Display (live monitoring)
CPU_Load → Compare (threshold 80%)
→ LED warning if exceeded
% External mode:
% - Tune parameters while monitoring load
% - Find maximum achievable performance