A Realtime Simulation environment for rapid prototyping of digital control systems and education