Real Time Digital Simulation for Control and Protection System Testing