In this paper, a framework for integrating a real-time digital simulator and EMS-OPF program is proposed and addressed, through two different communication architectures: asynchronous and synchronous. Validation of these communication architectures is carried out by Ethernet UDP/IP (asynchronous) and analog channels of IO card (synchronous). With this framework, both dynamic and steady-state performance of a power system can be studied easily in real-time mode.