Development of Python-MATLAB Interface Program for Optical Communication System Simulation

Development of Python-MATLAB Interface Program for Optical Communication System Simulation

Table of Contents


This paper reports on the results of a developing Python-MATLAB interface program to implement an optical wireless communication system simulation. We implement a Python interface for entering input values and simulation environment variables for MATLAB. We operate MATLAB to numerical computing processes about communication system simulation to generate a signal, to approximate channel characteristics, and to recover the signal. Python passes input data and environment variables to MATLAB and displays output data and graphs from the simulation after MATLAB numerical computing.

Author Keywords

  • Simulation,
  • optical communication,
  • Python

IEEE Keywords

  • Matlab,
  • Optical filters,
  • Python,
  • Optical fiber communication,
  • Wireless communication,
  • Numerical models,
  • Optical fibers


Optical communication means communication technology using light to convey information through a medium such as optical fiber or air and it provides high-capacity long-distance transmission all over the world [1]. Although radio frequency (RF) communication has merits such as mobility, it has problems such as security, allocating frequency bandwidth, and the harmfulness of radio waves. We already have been utilizing optical communication technology to solve and complement the above problems for wireless communication channels [2]. Out of optical communication technologies, optical wireless communications have immunity to RF interference due to the utilization of directivity of light. Besides, the optical devices are relatively free to optical interference and free to safety regulation because we live our daily lives under the visible light. These advantageous wireless optical communications are in active research in European countries [3].

From the viewpoint of a high-capacity communication system, the optical fiber communication system is inevitable for modern information-based societies. The transoceanic optical fiber links feed the huge amount of information traffic. The design and deployment of optical communication systems are very time-consuming and expensive. Therefore, the simulation-based design, research, and development are important in this field.

In communication research areas, it is one of the important subjects to validate the communication performance of a candidate system. To implement a system for the test, a large amount of money and time is required, for example. If we perform computer simulations for performance assessment based on the precise modeling of physical principles, it is possible to save money and time [4]. For this reason, simulation-based research for optical communication is important in this area. Besides, MATLAB is used for much numerical calculation and analysis and, more generally, can be used most of the engineering research. Many MATLAB functions are validated by researchers and provides proven algorithms for numerical processing [5]. In spite of the many powerful mathematical functions implemented in MATLAB, we need to write input values and simulation environment in text form during MATLAB coding. It is inefficient to modify text files every time for changing values. If an interface program for entering input values and environment variables in graphical user windows, it will be very efficient to perform simulations.

Python programming language is drawing much attention due to its convenience and portability between different systems. Also, it has many open source libraries and provides easy connection mechanism to other programming languages [6]. Therefore, we use Python programming language for an interface program for entering input values and environment variables in graphical user windows and it calls appropriate MATLAB functions corresponding to numerical calculations.

This paper reports on the implementation of the pythonMATLAB interface program for optical wireless communication simulation. We employ pulse position modulation (PPM) considering the wireless channels. To focus on developing the interface program, the various channel effects during signal propagation such as loss, absorption, dispersion, reflection, refraction, and scattering are simplified and approximated to low pass filters. Also, we describe the operating processes of the simulation program. This paper is organized as follows: simulation structure for communication systems, program organization, simulation result and discussion, and the conclusion.


We have developed a Python-MATLAB interface program for simulation of optical communication systems. The developed interface program can generate graphs for assessing various communication performances, for example, BER, waveform, spectrum, eye diagram, etc. The interface program is the basis for developing comprehensive simulation software of optical communication system. The program has the advantage of easy handling of various simulation parameters.

About KSRA

The Kavian Scientific Research Association (KSRA) is a non-profit research organization to provide research / educational services in December 2013. The members of the community had formed a virtual group on the Viber social network. The core of the Kavian Scientific Association was formed with these members as founders. These individuals, led by Professor Siavosh Kaviani, decided to launch a scientific / research association with an emphasis on education.

KSRA research association, as a non-profit research firm, is committed to providing research services in the field of knowledge. The main beneficiaries of this association are public or private knowledge-based companies, students, researchers, researchers, professors, universities, and industrial and semi-industrial centers around the world.

Our main services Based on Education for all Spectrum people in the world. We want to make an integration between researches and educations. We believe education is the main right of Human beings. So our services should be concentrated on inclusive education.

The KSRA team partners with local under-served communities around the world to improve the access to and quality of knowledge based on education, amplify and augment learning programs where they exist, and create new opportunities for e-learning where traditional education systems are lacking or non-existent.

FULL Paper PDF file:

Development of Python-MATLAB Interface Program for Optical Communication System Simulation



Y. Hwang, D. Choi, H. An, S. Shin, and C. G. Lee,




Development of Python-MATLAB Interface Program for Optical Communication System Simulation,

Publish in

2019 International Conference on Green and Human Information Technology (ICGHIT), Kuala Lumpur, Malaysia, 2019, pp. 46-48,



PDF reference and original file: Click here

+ posts

Somayeh Nosrati was born in 1982 in Tehran. She holds a Master's degree in artificial intelligence from Khatam University of Tehran.

Website | + posts

Professor Siavosh Kaviani was born in 1961 in Tehran. He had a professorship. He holds a Ph.D. in Software Engineering from the QL University of Software Development Methodology and an honorary Ph.D. from the University of Chelsea.

Website | + posts

Nasim Gazerani was born in 1983 in Arak. She holds a Master's degree in Software Engineering from UM University of Malaysia.