2007-11-28 17:56:37 +01:00
|
|
|
set terminal postscript eps monochrome font "Helvetica" 16
|
|
|
|
set output "plot-power.eps"
|
|
|
|
set title "Average power consumption per node"
|
|
|
|
set xlabel "Node number"
|
|
|
|
set ylabel "Power (mW)"
|
|
|
|
set boxwidth 0.5
|
|
|
|
set style fill pattern
|
|
|
|
#set key top left Left width -5
|
|
|
|
|
|
|
|
plot [:] [0:] \
|
2008-01-08 09:28:09 +01:00
|
|
|
'total-power' using \
|
2007-11-28 17:56:37 +01:00
|
|
|
2:((0.0545 * $3 + 1.8 * $4 + 20.0 * $5 + 17.7 * $6 + 4.6 * $7) / 4096) * 3 / $1 \
|
|
|
|
with boxes title "Red LED", \
|
2008-01-08 09:28:09 +01:00
|
|
|
'total-power' using \
|
2007-11-28 17:56:37 +01:00
|
|
|
2:((0.0545 * $3 + 1.8 * $4 + 20.0 * $5 + 17.7 * $6) / 4096) * 3 / $1 \
|
|
|
|
with boxes title "Radio transmit", \
|
2008-01-08 09:28:09 +01:00
|
|
|
'total-power' using \
|
2007-11-28 17:56:37 +01:00
|
|
|
2:((0.0545 * $3 + 1.8 * $4 + 20.0 * $5) / 4096) * 3 / $1 \
|
|
|
|
with boxes title "CPU low-power mode", \
|
2008-01-08 09:28:09 +01:00
|
|
|
'total-power' using \
|
2007-11-28 17:56:37 +01:00
|
|
|
2:((1.8 * $4 + 20.0 * $5) / 4096) * 3 / $1 \
|
|
|
|
with boxes title "CPU active mode", \
|
2008-01-08 09:28:09 +01:00
|
|
|
'total-power' using \
|
2007-11-28 17:56:37 +01:00
|
|
|
2:((20.0 * $5) / 4096) * 3 / $1 \
|
|
|
|
with boxes title "Radio reception"
|