Hardware-in-the-loop (HIL) simulation is a technique that is being used increasingly in the development and test of complex systems. Real-world testing of an intricate system in a field like power plant can be challenging, time-consuming, expensive, and hazardous. HIL emulators allow engineers to test devices thoroughly and efficiently in a virtual environment with high reliability and minimum risk of defect. In this paper, the complete electric power system (including generator, turbinegovernor, excitation system, transmission lines, transformer, external grid and related loads) is implemented in MATLAB/Simulink environment. Different virtual instrument (VI) pages are modeled in the graphical programming language of LabVIEW which enable fast and reliable measurement functions such as data acquisition, archiving, real-time graphical display and processing. The interaction between MATLAB and LabVIEW is accomplished by generating a Phar Lap ETS Targets *.dll file which enables the two software to exchange real-time data. Also, a real 1518 kW excitation system is considered as a test case for introduced HIL system. This equipment is connected to LabVIEW software through a National Instrument PXI technology. Different scenarios (electrical frequency/active power change, voltage step response and etc.) are simulated in the designed Power System Emulator (PSE). The validity of implemented model for excitation system is verified by finding good matching between MATLAB and HIL simulation results. Index Terms-hardware-in-the-loop (HIL), LabVIEW, power system emulator (PSE), real-time simulation, virtual instrument.