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