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
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 :))
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?
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.
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