Git Product home page Git Product logo

fso-simulator-c's Introduction

FSO Simulator in C

A free-space optical (FSO) commuication link simulator written in C language

Written by Mojtaba Mansour Abadi

The code is written in C language using Code::Blocks. The code performs a real time simulation by generating psedurandom bit sequence on the fly. The bit sequence is changed into electrical signal which modulates a laser later on. The output of the laser is launched into a free space optical channel where laser output is exposed to propagation, fog/smoke, turbulence, pointing error, and miscellaneous effects. The optical beam then is received by an aperture and then converted to electrical signal using a photo-receiver. Then received bits are extracted and compared to transmit bits in order to measure bit-error-rate (BER) of the system. The turbulence effect is based on Log-Normal model and for fog/smoke, Kim model is utilised.

Code::Blocks ide can be downloaded from here. For GUIs and plots DISLIN a free library is used. DISLIN can be downloaded for both windows and linux from here. To perform FFT operation, GSL an open source library is used. GSL is included in linux and for windows it can be downloaded from here.

Windows

  • Add the following libraries to the build linker setting: DISLIN Library: "dismg.a" OS Library: "user32", "gdi32", and "opengl32" GSL Library: "gsl folder\lib\libgsl.a", and "gsl folder\lib\libgslcblas.a"
  • Add DISLIN header file folder to search directories compiler

Linux

  • Add the following libraries to the build linker setting: DISLIN Library: "libdislin.so" OS Library: "pthread" GSL Library: "libgsl", and "libgslcblas"
  • Add DISLIN header file folder to search directories compiler

Screenshot

fso-simulator-c's People

Contributors

mansourm61 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.