A dual-channel current and voltage monitor