lognormal channel in FSO
Dear All,
Dear Damain,
If I have an simple FSO communication as attached, how can i call matlab program to establish lognormal channel in free space optical communication using optiwave 7.
note. the matlab code for lognormal distribution is
x=normrnd(a,b,c,d);
a=mean b=standard deviation c=number of rows d=number of columns
y=exp(2*x); y:lognormal random variables
Hope your support.
Regards,
Ahmed
Responses (18):

May 13, 2015 at 1:18 pm #20782
Dear All,
Dear Damain,
If I have an simple FSO communication as attached, how can i call matlab program to establish lognormal channel in free space optical communication using optiwave 7.
note. the matlab code for lognormal distribution is
x=normrnd(a,b,c,d);
a=mean b=standard deviation c=number of rows d=number of columns
y=exp(2*x); y:lognormal random variables
Hope your support.
Regards,
Ahmed 
May 14, 2015 at 12:41 am #20801
for example of how to co simulate matlab with optisystem there are a lot many examples on forum and in samples as well.
try looking for videos for setting up components using matlab.
For example have a look at:+1 
May 15, 2015 at 3:36 am #20824
There Are a lot of examples regarding the cosimulation between Matlab and OptiSystem, but unfortunately all of them just give the main idea of what happens and do not save you a lot of time on learning how to do the cosimulation when it is more complicated than what is shown in the example.
To put it simply, the output and input to the channel are vectors. So first you should be able to know how to observe them and then, try to make a program that makes the changes on these vectors in Matlab. 
June 2, 2015 at 5:36 pm #21329
Thanks to all but Iâ€™m just a beginner, so please anyone help me to build matlab program as below
MU=0;
SIGMA=.1;
x=NORMRND(MU,SIGMA);
y=exp(2*x); y:lognormal random variables
in the FSO optiwave as attached in the figure below
Regards,Attachments:

June 6, 2015 at 5:14 pm #21430
Damian, where are you?
I need your help please.
June 8, 2015 at 11:25 am #21484
Ahmed,
I’m back in the office this week after giving an Optiwave training in Korea last week! As for your question, I can help you get your Matlab program working with the Matlab component in OptiSystem, but unfortunately I do not have the resources to build a Matlab program from scratch for you.
If you have a mfile and project file you want to get working together please attach them and I will help you out! If you have any specific questions about how the interface between the two difference products works I can also help you there.
Regards


June 8, 2015 at 5:54 pm #21501
Damian,
Thank you so much. Have a nice tripe.
I will attach a Matlab program.
Thanks again for your concern.
Regards 
June 11, 2015 at 11:46 am #21612
Dear Damian,
Kindly fine the attached files(osd and m file) herewith our simulation that doesn’t work
thank you
yours,Attachments:

June 16, 2015 at 11:54 am #21753
Here I fixed the mfile. I believe you wanted to multiply the entire vector by different random numbers so I used the .* operator instead.
Your Matlab component also did not correctly call the function aaa, so I changed the initial command.
Cheers
Attachments:
+1

June 13, 2015 at 1:07 pm #21666
Dear Damian,
Are You find the attachment, kindly i need your advice.
Thanks 
June 15, 2015 at 3:34 pm #21726
Yes I found the attachment thank you. This is the next item I am looking at.

June 16, 2015 at 1:45 pm #21756
Thanks Damian, but i can’t open the osd file, could you please send it to me via my my email(ahmed.teama@te.eg)
yours,
June 16, 2015 at 3:22 pm #21757
Unfortunately, since you have an older version of OptiSystem you will not be able to open the file. You should be able to use your original project file but make these changes:
1) Change the run command to “aaa;” which is the name of the file and also switch back the Matlab search path to where you can find the file.
2)For some reason the Optical Receiver that came placed in your file was giving me an error so I just deleted it and placed a new one and it worked fine, maybe you changed some parameters? I also changed the Bit rate of the Bit Sequence Generator to scripting mode and used the global parameter Bit rate to control the value, which is the default option.
Regards
Attachments:


March 2, 2016 at 10:57 am #30960
Hi all..
This post was really beneficial for me, as I am also working on FSO and I want to simulate my system on various Turbulence fading models.
Could you please tell me can I use the code you have provided above for any link range and any modulation scheme that I employ in my system??Regards.
+1 
March 2, 2016 at 12:12 pm #30974
hi damain sir,
i have the confusion that the .osd screen shot that ahmad helmy has attached shows the matlab block outside the FSO, but we have apply these fading models inside the FSO.
how could we apply such design to practical application.with regards

March 3, 2016 at 1:01 am #31107
Hi Aasif..
Well, that option, i.e. the scintillation index inside the FSO channel component properties could be disabled.
Then the MATLAB component could be placed. Hope this helps you understand.Regards.

March 3, 2016 at 1:16 am #31114
hi naazira,
are you confident about that such design will be useful for practical scernario.
because in environment sometimes many factors interact together to effect the signal transmission.its like you are applyinf superposition in such design.
hope you will reply soon.with regards

March 3, 2016 at 5:16 am #31163
Hi Aasif.
Use of the MATLAB component should not be confused with the practical implication.I believe use of a MATLAB compomponent is just intended to add an additional turbulence model here.What we logically did is : Disable one model and enable the other one.That should not alter the practical scenario. Hope I was clear enough.
Regards.
Login You must be logged in to reply to this topic.