A multi-platform CPU-based architecture for cost-effective adaptive optics systems