System for voltage control and for data acquisition of retarding field energy analyzer