Giter Site home page Giter Site logo

mansourm61 / fso-simulator-matlab Goto Github PK

View Code? Open in Web Editor NEW
40.0 40.0 21.0 802 KB

A fully explaned MATLAB code for simulating a free-space optical (FSO) communication system featuring channels loss, pointing error, turbulence, fog/smoke condition comparing with all analystical solutions

MATLAB 100.00%

fso-simulator-matlab's People

Contributors

mansourm61 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fso-simulator-matlab's Issues

electrical to optical conversion

hi, I'm new in optics and FSO system and I'm using your code and sources to figure out the math for simulation in matlab but I'm having some problems and I appreciate if u can help me with these!
in your code (FSO_system.m) in first line of section 3 where u calculate Laser_Sim_Out variable we have this equation:
Laser_Sim_Out = DelP_Sim*(Signal_Sim_Out - Sig_Level); % generate laser output (W)
this equation makes sense and I don't have problem with it, you are adding some DC values to your signal (Signal_Sim_Out - Sig_Level) then multiply it by DelP_Sim to convert it to optical power! the result as you comment is in Watt. but in the code we have 0 or 1 values for Signal_Sim_Out and 0.5 for Sig_Level which leads to negative values in Laser_Sim_Out for all 0 bits in Signal_Sim_Out which I can't understand what does negative values in Watt mean in optical signal!
by the way it was a nice persian poem in the first of your thesis! :)
I have some other problems and I would ask them in other issues cause they are related to other part of the code! thank you in advance :))

channel effect on signal

hi again, I have one another question so far and I would appreciate if you can help me in this too! :)
to calculate Rec_Sim_Opt in your code(FSO_System.m) in section 4, there is 3 possible ways which is defined by Fading_Add variable in GlobalParameters.m ( 'M1' for Pavg, 'M2' for signal and 'M3' for both signal and Pavg), I can't figure out what is P_avg doing here at all!! in your thesis in page 213 in last paragraph we have this: "It is possible to produce the arrived optical signal at the Rx side A by multiplying the optical signal S and the fading channel coefficient ℎ (i.e., r = S×ℎ)." in this we have no P_avg variable in the equation and we only need Laser_Sim_Out and Fading_Sim variables in the code to calculate the result by this equation:
"Rec_Sim_Opt = Fading_Sim .* Laser_Sim_Out" as this paragraph in your thesis is saying!
can you tell me what I'm missing here plz?

Monte Carlo simulation of FSO channels

Is it possible that the program code for Monte Carlo simulation of FSO channel performance for classical channel models (Gamma-Gamma, LogNormal, Rician, Rayleigh, ...) can be applied to complex channel models obtained by a combination of classical models? Eg. for performance such as BER, capacity, etc.
Thanks in advance.

Figure problem (?) of FSO channel

Hi! I'm new to optic and working with optical wireless communication, specifically free space optical system for a graduation thesis. I'm using your codes as a part of my thesis. Everything works fine until I have some problem:

  • For clear channel case, there's only one BER value after running the code and not all five. Is it the way you calculate it or it has some problem?
  • For Log-Normal + pointing error case, in figure I can only see the simulation line, it didn't include the analytic line.
  • For fog/smoke case, I don't see the simulation line.
    Can you explain all of the case that I mentioned? I really appreciate if you explain it in detail. I know these are easy for you ut it's hard for me because I'm new.
    Thanks in advance

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.