A real-time, sub-millisecond closed-loop data acquisition platform