B# (B sharp) is a programmable power supply that emulates battery behavior. It measures current load, calls a battery simulation program to compute voltage in real time, and controls a linear regulator to mimic a battery's voltage output. The instrument enables validation of battery-aware power optimization techniques with accurate, controllable, reproducible results.